From b183a5779a4ec63969f2533316b200e7abf0cdcd Mon Sep 17 00:00:00 2001 From: alannnc Date: Fri, 9 Feb 2024 16:02:05 -0700 Subject: [PATCH] fix: oncancel modal action week layout (#13625) --- .../Booker/components/BookEventForm/BookFormAsModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.tsx index 97849df170..cb8d2273b0 100644 --- a/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.tsx +++ b/packages/features/bookings/Booker/components/BookEventForm/BookFormAsModal.tsx @@ -16,6 +16,9 @@ const BookEventFormWrapper = ({ children }: { onCancel: () => void; children: Re const { data } = useEvent(); const parsedSelectedTimeslot = dayjs(selectedTimeslot); const { timeFormat, timezone } = useTimePreferences(); + if (!selectedTimeslot) { + return null; + } return ( <>

{t("confirm_your_details")}