Scheduling infrastructure for absolutely everyone.
fix: hide organizer email on cancellation page (#24616)
Dhairyashil Shindecd5b75fe2cca
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsxindex 0a508b93ed4..d663f2a1980 100644--- a/apps/web/modules/bookings/views/bookings-single-view.tsx+++ b/apps/web/modules/bookings/views/bookings-single-view.tsx@@ -580,14 +580,16 @@ export default function Success(props: PageProps) {</div></>)}- {isCancelled && bookingInfo?.cancelledBy && (- <>- <div className="font-medium">{t("cancelled_by")}</div>- <div className="col-span-2 mb-6 last:mb-0">- <p className="break-words">{bookingInfo?.cancelledBy}</p>- </div>- </>- )}+ {isCancelled &&+ bookingInfo?.cancelledBy &&+ !(bookingInfo.eventType?.hideOrganizerEmail && !isHost) && (+ <>+ <div className="font-medium">{t("cancelled_by")}</div>+ <div className="col-span-2 mb-6 last:mb-0">+ <p className="break-words">{bookingInfo?.cancelledBy}</p>+ </div>+ </>+ )}{previousBooking && (<><div className="font-medium">{t("rescheduled_by")}</div>@@ -743,7 +745,7 @@ export default function Success(props: PageProps) {{showUtmParams && (<div className="col-span-2 mb-2 mt-2">{Object.entries(utmParams).filter(([_, value]) => Boolean(value)).length >- 0 ? (+ 0 ? (<ul className="list-disc space-y-1 p-1 pl-5 sm:w-80">{Object.entries(utmParams).filter(([_, value]) => Boolean(value))@@ -851,10 +853,11 @@ export default function Success(props: PageProps) {<span className="text-default inline"><span className="underline" data-testid="reschedule-link"><Link- href={`/reschedule/${seatReferenceUid || bookingInfo?.uid}${currentUserEmail- ? `?rescheduledBy=${encodeURIComponent(currentUserEmail)}`- : ""- }`}+ href={`/reschedule/${seatReferenceUid || bookingInfo?.uid}${+ currentUserEmail+ ? `?rescheduledBy=${encodeURIComponent(currentUserEmail)}`+ : ""+ }`}legacyBehavior>{t("reschedule")}</Link>