Skip to content

Commit

Permalink
fix: nullable email identity in posthog
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Apr 5, 2024
1 parent 2161112 commit 5c4fe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/identify-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 5c4fe89

Please sign in to comment.