Scheduling infrastructure for absolutely everyone.
Change to OR operator (#21881)
Joe Au-Yeungddc5838c7bf6
diff --git a/packages/app-store/googlecalendar/lib/CalendarService.ts b/packages/app-store/googlecalendar/lib/CalendarService.tsindex ae43959dc09..0a0d4d2aae4 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,];