From ddc5838c7bf6ec9a5acb536ab8f94e0559f8d5cb Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Tue, 17 Jun 2025 19:04:38 -0400 Subject: [PATCH] Change to OR operator (#21881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Omar López --- packages/app-store/googlecalendar/lib/CalendarService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/app-store/googlecalendar/lib/CalendarService.ts b/packages/app-store/googlecalendar/lib/CalendarService.ts index ae43959dc0..0a0d4d2aae 100644 --- a/packages/app-store/googlecalendar/lib/CalendarService.ts +++ b/packages/app-store/googlecalendar/lib/CalendarService.ts @@ -98,7 +98,8 @@ export default class GoogleCalendarService implements Calendar { organizer: true, // Tried changing the display name to the user but GCal will not let you do that. It will only display the name of the external calendar. Leaving this in just incase it works in the future. displayName: event.organizer.name, - email: hostExternalCalendarId ?? selectedHostDestinationCalendar?.externalId ?? event.organizer.email, + // We use || instead of ?? here to handle empty strings + email: hostExternalCalendarId || selectedHostDestinationCalendar?.externalId || event.organizer.email, }, ...eventAttendees, ];