Skip to content

Scheduling infrastructure for absolutely everyone.

fix: type fix

zomars27ce5e7808d5
diff --git a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
index 9bdae54dd8c..dc34e661b21 100644
--- a/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
+++ b/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.tsx
@@ -517,7 +517,8 @@ const RedirectToInstantMeetingModal = ({ expiryTime }: { expiryTime?: Date }) =>
<Button
className="mt-4"
onClick={() => {
- window.location.href = pathname;
+ // Prevent null on app directory
+ if (pathname) window.location.href = pathname;
}}
color="primary">
{t("go_back")}