From 65893ae943f258925681aaf80b4f08c50e266e8a Mon Sep 17 00:00:00 2001 From: Saurabh Singh Date: Tue, 2 Dec 2025 08:02:51 +0530 Subject: [PATCH] fix: [object object] problem (#24643) * fix: object problem * revert and improve logic * revert * fix * Update apps/web/modules/bookings/views/bookings-single-view.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Co-authored-by: Pallav <90088723+Pallava-Joshi@users.noreply.github.com> --- apps/web/modules/bookings/views/bookings-single-view.tsx | 2 +- packages/platform/examples/base/src/pages/[bookingUid].tsx | 2 +- packages/sms/attendee/event-cancelled-sms.ts | 2 +- 3 files 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 f501a23af6..563c2ae56f 100644 --- a/apps/web/modules/bookings/views/bookings-single-view.tsx +++ b/apps/web/modules/bookings/views/bookings-single-view.tsx @@ -595,7 +595,7 @@ export default function Success(props: PageProps) { )}
{t("what")}
- {isRoundRobin ? bookingInfo.title : eventName} + {isRoundRobin ? (typeof bookingInfo.title === 'string' ? bookingInfo.title : eventName) : eventName}
{t("when")}
diff --git a/packages/platform/examples/base/src/pages/[bookingUid].tsx b/packages/platform/examples/base/src/pages/[bookingUid].tsx index d4b5502eb9..640431d8ff 100644 --- a/packages/platform/examples/base/src/pages/[bookingUid].tsx +++ b/packages/platform/examples/base/src/pages/[bookingUid].tsx @@ -62,7 +62,7 @@ export default function Bookings(props: { calUsername: string; calEmail: string

What

-

{booking.title}

+

{typeof booking.title === 'string' ? booking.title : 'Untitled Event'}

diff --git a/packages/sms/attendee/event-cancelled-sms.ts b/packages/sms/attendee/event-cancelled-sms.ts index c26c924c53..917eac6936 100644 --- a/packages/sms/attendee/event-cancelled-sms.ts +++ b/packages/sms/attendee/event-cancelled-sms.ts @@ -15,7 +15,7 @@ export default class EventCancelledSMS extends SMSManager { const messageText = `${t("hey_there")} ${attendee.name}, ${t("event_request_cancelled")}\n\n${t( "event_cancelled_subject", { - title: this.calEvent.title, + title: typeof this.calEvent.title === 'string' ? this.calEvent.title : 'Untitled Event', date: this.getFormattedDate(attendee.timeZone, attendee.language.locale), interpolation: { escapeValue: false }, }