From dc3c7b43bf58f7fa115bc2e650ed3c4ba6d33a69 Mon Sep 17 00:00:00 2001 From: amrit Date: Tue, 11 Mar 2025 19:05:59 +0530 Subject: [PATCH] fix: correct translation key for host and attendee emails (#19962) --- apps/web/modules/bookings/views/bookings-single-view.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsx index fd46527e55..8f0c95f077 100644 --- a/apps/web/modules/bookings/views/bookings-single-view.tsx +++ b/apps/web/modules/bookings/views/bookings-single-view.tsx @@ -322,12 +322,12 @@ export default function Success(props: PageProps) { const attendee = bookingInfo.attendees[0]?.name || bookingInfo.attendees[0]?.email || "Nameless"; const host = bookingInfo.user.name || bookingInfo.user.email; if (isHost) { - return t(`${titlePrefix}emailed_host_and_attendees${titleSuffix}`, { + return t(`${titlePrefix}emailed_host_and_attendee${titleSuffix}`, { user: attendee, }); } if (isAttendee) { - return t(`${titlePrefix}emailed_host_and_attendees${titleSuffix}`, { + return t(`${titlePrefix}emailed_host_and_attendee${titleSuffix}`, { user: host, }); } @@ -336,7 +336,7 @@ export default function Success(props: PageProps) { attendee, }); } - return t(`emailed_host_and_attendees${titleSuffix}`); + return t(`emailed_host_and_attendee${titleSuffix}`); } // This is a weird case where the same route can be opened in booking flow as a success page or as a booking detail page from the app