From bee6c911ed5f2eeb01724e471f25784a2b2c480c Mon Sep 17 00:00:00 2001 From: LWS49 Date: Wed, 20 Sep 2023 13:47:39 +0800 Subject: [PATCH] debug 24hr bug --- frontend/src/store/facilityBooking/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store/facilityBooking/action.ts b/frontend/src/store/facilityBooking/action.ts index 9fd8830d1..fe3baad69 100644 --- a/frontend/src/store/facilityBooking/action.ts +++ b/frontend/src/store/facilityBooking/action.ts @@ -75,7 +75,7 @@ export const updateBookingDailyView = (date: Date, selectedFacilityId: number) = if (startDate < date.getDate() && startTimeObject.getMonth() <= date.getMonth()) { const startHour = 0 - const endHour = endTimeObject.getHours() + const endHour = endTimeObject.getHours() == 0 ? 24 : endTimeObject.getHours() let timestamp = booking.startTime for (let hour = startHour; hour < endHour; hour++) { updatedTimeBlocks[hour] = {