Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joeauyeung committed Jan 21, 2025
1 parent 0e0c13a commit e86352b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/EventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ export default class EventManager {

const uid = getUid(event);
for (const credential of this.crmCredentials) {
if (credential?.user.email && credential.user.email !== event?.organizer?.email) {
if (credential?.user?.email && credential.user.email !== event?.organizer?.email) {
log.error(
`CRM credential ${credential.id} does not match the organizer ${event?.organizer?.email} for event type ${event?.eventTypeId}`
);
Expand Down

0 comments on commit e86352b

Please sign in to comment.