Change to OR operator (#21881)

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Joe Au-Yeung
2025-06-17 23:04:38 +00:00
committed by GitHub
co-authored by Omar López
parent 6a13d7c5c6
commit ddc5838c7b
@@ -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,
];