Removed faulty check
parent
560bd19472
commit
5a5e61739b
|
@ -34,11 +34,6 @@ function isAvailable(busyTimes, time, length) {
|
|||
const startTime = dayjs(busyTime.start);
|
||||
const endTime = dayjs(busyTime.end);
|
||||
|
||||
// Check if start times are the same
|
||||
if (dayjs(time).format("HH:mm") == startTime.format("HH:mm")) {
|
||||
t = false;
|
||||
}
|
||||
|
||||
// Check if time is between start and end times
|
||||
if (dayjs(time).isBetween(startTime, endTime)) {
|
||||
t = false;
|
||||
|
|
Loading…
Reference in New Issue