diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 49b1c2035d..e4e3b66869 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -65,6 +65,7 @@ function BookingListItem(booking: BookingItemProps) { }; const isUpcoming = new Date(booking.endTime) >= new Date(); + const isPast = new Date(booking.endTime) < new Date(); const isCancelled = booking.status === BookingStatus.CANCELLED; const isConfirmed = booking.status === BookingStatus.ACCEPTED; const isRejected = booking.status === BookingStatus.REJECTED; @@ -366,6 +367,7 @@ function BookingListItem(booking: BookingItemProps) { {isRejected &&