diff --git a/src/utils/identify-user.ts b/src/utils/identify-user.ts index c961254b..8ec6b474 100644 --- a/src/utils/identify-user.ts +++ b/src/utils/identify-user.ts @@ -7,7 +7,7 @@ export const identifyUser = ( ) => { let properties = { name: identity?.displayName, - email: identity?.linkedAccounts[0].email.email, + email: identity?.linkedAccounts.find(x => x.email)?.email?.email, avatar: identity?.avatarUrl };