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] = {