Skip to content

Scheduling infrastructure for absolutely everyone.

fix: [object object] problem (#24643)

Saurabh Singh65893ae943f2
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsx
index f501a23af69..563c2ae56f6 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) {
)}
<div className="font-medium">{t("what")}</div>
<div className="col-span-2 mb-6 break-words last:mb-0" data-testid="booking-title">
- {isRoundRobin ? bookingInfo.title : eventName}
+ {isRoundRobin ? (typeof bookingInfo.title === 'string' ? bookingInfo.title : eventName) : eventName}
</div>
<div className="font-medium">{t("when")}</div>
<div className="col-span-2 mb-6 last:mb-0">
diff --git a/packages/platform/examples/base/src/pages/[bookingUid].tsx b/packages/platform/examples/base/src/pages/[bookingUid].tsx
index d4b5502eb99..640431d8ff3 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
<h4>What</h4>
</div>
<div>
- <p>{booking.title}</p>
+ <p>{typeof booking.title === 'string' ? booking.title : 'Untitled Event'}</p>
</div>
</div>
<div className="flex gap-[70px]">
diff --git a/packages/sms/attendee/event-cancelled-sms.ts b/packages/sms/attendee/event-cancelled-sms.ts
index c26c924c53d..917eac69363 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 },
}