chore: add event has been rescheduled title (#17286)

This commit is contained in:
Udit Takkar authored and GitHub committed 2024-10-24 17:18:55 +00:00
1 parent ca5b83f876
commit 50a41109d0
2 files changed
+7

No files matched your search

@@ -366,6 +366,8 @@ export default function Success(props: PageProps) {
const isEventCancelled = isCancelled && !seatReferenceUid;
const isPastBooking = isBookingInPast;
const isRerouting = searchParams?.get("cal.rerouting") === "true";
const isRescheduled = bookingInfo?.rescheduled;
const successPageHeadline = (() => {
if (needsConfirmationAndReschedulable) {
return isRecurringBooking ? t("booking_submitted_recurring") : t("booking_submitted");
@@ -379,6 +381,10 @@ export default function Success(props: PageProps) {
return t("no_longer_attending");
}
if (isRescheduled) {
return t("your_event_has_been_rescheduled");
}
if (isEventCancelled) {
return t("event_cancelled");
}