diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index 1443f8318d..789576f23e 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -153,7 +153,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; @@ -177,6 +177,7 @@ const BookingPage = ({ email: attendees[0].email, location, eventName: profile.eventName || "", + bookingId: id, }, }); }, diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index 21246f120b..52b0e715e5 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -310,14 +310,6 @@ export default function Success(props: SuccessProps) {
{eventName}
{t("when")}
- {date.format("MMMM DD, YYYY")} -
- {date.format("LT")} - {date.add(props.eventType.length, "m").format("LT")}{" "} - - ({localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()}) - -
-
{t("who")}
-
+
{bookingInfo?.user && (

{bookingInfo.user.name}

@@ -556,9 +548,9 @@ function RecurringBookings({ {eventType.recurringEvent?.count && recurringBookings.slice(0, 4).map((dateStr, idx) => (
- {dayjs(dateStr).format("dddd, DD MMMM YYYY")} + {dayjs(dateStr).format("MMMM DD, YYYY")}
- {dayjs(dateStr).format(is24h ? "H:mm" : "h:mma")} - {eventType.length} mins{" "} + {dayjs(dateStr).format("LT")} - {dayjs(dateStr).add(eventType.length, "m").format("LT")}{" "} ({localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()}) @@ -575,9 +567,9 @@ function RecurringBookings({ {eventType.recurringEvent?.count && recurringBookings.slice(4).map((dateStr, idx) => (
- {dayjs(dateStr).format("dddd, DD MMMM YYYY")} + {dayjs(dateStr).format("MMMM DD, YYYY")}
- {dayjs(dateStr).format(is24h ? "H:mm" : "h:mma")} - {eventType.length} mins{" "} + {dayjs(dateStr).format("LT")} - {dayjs(dateStr).add(eventType.length, "m").format("LT")}{" "} ({localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()}) @@ -589,9 +581,9 @@ function RecurringBookings({ ) : !eventType.recurringEvent.freq ? ( <> - {date.format("dddd, DD MMMM YYYY")} + {date.format("MMMM DD, YYYY")}
- {date.format(is24h ? "H:mm" : "h:mma")} - {eventType.length} mins{" "} + {date.format("LT")} - {date.add(eventType.length, "m").format("LT")}{" "} ({localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()})