Skip to content

Commit

Permalink
Remove futureBookings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimanns committed Dec 17, 2024
1 parent 87c8a67 commit 4bab56b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export default function useExistingBooking() {
setBookingCalendarInfo,
setFormData,
} = useContext(BookingContext);
const { futureBookings, roomSettings } = useContext(DatabaseContext);
const { allBookings, roomSettings } = useContext(DatabaseContext);

const findBooking = (calendarEventId: string) =>
futureBookings.filter(
allBookings.filter(
(booking) => booking.calendarEventId === calendarEventId
)[0];

Expand Down

0 comments on commit 4bab56b

Please sign in to comment.