diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index f27a2a36f4..a8f90b0f1b 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -143,6 +143,7 @@ const BookingPage = ({ isSuccessBookingPage: true, email: bookingForm.getValues("email"), eventTypeSlug: eventType.slug, + formerTime: booking?.startTime.toString(), }, }); }, @@ -158,6 +159,7 @@ const BookingPage = ({ allRemainingBookings: true, email: bookingForm.getValues("email"), eventTypeSlug: eventType.slug, + formerTime: booking?.startTime.toString(), }, }); }, diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index ce9f890cf3..6a39a2db20 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -168,6 +168,7 @@ const querySchema = z.object({ changes: stringToBoolean, reschedule: stringToBoolean, isSuccessBookingPage: z.string().optional(), + formerTime: z.string().optional(), }); export default function Success(props: SuccessProps) { @@ -179,6 +180,7 @@ export default function Success(props: SuccessProps) { isSuccessBookingPage, cancel: isCancellationMode, changes, + formerTime, } = querySchema.parse(router.query); if ((isCancellationMode || changes) && typeof window !== "undefined") { @@ -425,9 +427,11 @@ export default function Success(props: SuccessProps) {
{getTitle()}
+