From 2a5a89fe50bf181cbbe4124eb8ed967545bd377a Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 11 May 2022 10:21:46 -0300 Subject: [PATCH] Missing fix for success page --- apps/web/components/booking/pages/BookingPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index f4ea09b654..c82e9ed378 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -144,7 +144,7 @@ const BookingPage = ({ const recurringMutation = useMutation(createRecurringBooking, { onSuccess: async (responseData = []) => { - const { attendees = [], recurringEventId } = responseData[0] || {}; + const { attendees = [], id, recurringEventId } = responseData[0] || {}; const location = (function humanReadableLocation(location) { if (!location) { return; @@ -168,6 +168,7 @@ const BookingPage = ({ email: attendees[0].email, location, eventName: profile.eventName || "", + bookingId: id, }, }); },