From cd5b75fe2cca4fbc3d28915d7869982b5064fd7e Mon Sep 17 00:00:00 2001 From: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com> Date: Mon, 3 Nov 2025 19:48:38 +0530 Subject: [PATCH] fix: hide organizer email on cancellation page (#24616) * fix: hide organizer email on cancellation page * if cancelled by any host - hide the cancelled by * Refactor organizer email logic and clean up code Removed the isOrganizerEmail function and updated conditions for displaying the cancelledBy information. --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> --- .../bookings/views/bookings-single-view.tsx | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsx index 0a508b93ed..d663f2a198 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) { )} - {isCancelled && bookingInfo?.cancelledBy && ( - <> -
{t("cancelled_by")}
-
-

{bookingInfo?.cancelledBy}

-
- - )} + {isCancelled && + bookingInfo?.cancelledBy && + !(bookingInfo.eventType?.hideOrganizerEmail && !isHost) && ( + <> +
{t("cancelled_by")}
+
+

{bookingInfo?.cancelledBy}

+
+ + )} {previousBooking && ( <>
{t("rescheduled_by")}
@@ -743,7 +745,7 @@ export default function Success(props: PageProps) { {showUtmParams && (
{Object.entries(utmParams).filter(([_, value]) => Boolean(value)).length > - 0 ? ( + 0 ? (