From 5a5e61739b5f1c784458696e2571bfd9f53b4253 Mon Sep 17 00:00:00 2001 From: nicolas Date: Sun, 8 Aug 2021 21:41:02 +0200 Subject: [PATCH] Removed faulty check --- pages/api/book/[user].ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].ts index b032c925..eeda903a 100644 --- a/pages/api/book/[user].ts +++ b/pages/api/book/[user].ts @@ -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;