Switched exclusivity, initial bugfix was incorrect
parent
4aadad7920
commit
3a00ab0d0e
|
@ -36,7 +36,7 @@ function isAvailable(busyTimes, time, length) {
|
||||||
const endTime = dayjs(busyTime.end);
|
const endTime = dayjs(busyTime.end);
|
||||||
|
|
||||||
// Check if time is between start and end times
|
// Check if time is between start and end times
|
||||||
if (dayjs(time).isBetween(startTime, endTime, null, "(]")) {
|
if (dayjs(time).isBetween(startTime, endTime, null, "[)")) {
|
||||||
t = false;
|
t = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue