Removed faulty check
This commit is contained in:
parent
560bd19472
commit
5a5e61739b
1 changed files with 0 additions and 5 deletions
|
@ -34,11 +34,6 @@ function isAvailable(busyTimes, time, length) {
|
||||||
const startTime = dayjs(busyTime.start);
|
const startTime = dayjs(busyTime.start);
|
||||||
const endTime = dayjs(busyTime.end);
|
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
|
// Check if time is between start and end times
|
||||||
if (dayjs(time).isBetween(startTime, endTime)) {
|
if (dayjs(time).isBetween(startTime, endTime)) {
|
||||||
t = false;
|
t = false;
|
||||||
|
|
Loading…
Reference in a new issue