Missing fix for success page

This commit is contained in:
Leo Giovanetti
2022-05-11 10:21:46 -03:00
committed by Omar López
parent 2ce1e78053
commit 2a5a89fe50

View File

@@ -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,
},
});
},