Skip to content

Commit

Permalink
fix: Amplitude setting user email in id (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored May 2, 2024
2 parents defa858 + 00361e8 commit 6cd1fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/libs/amplitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ export function track({ name, properties }: TrackData) {
userIdentity.set('profilePicture', properties.profilePicture);
}
identify(userIdentity);
setUserId(properties.id);
setUserId(properties.email);
} else if (name === 'SIGNIN') {
const userIdentity = new Identify();
userIdentity.set('id', properties.id);
userIdentity.set('email', properties.email);
identify(userIdentity);
setUserId(properties.id);
setUserId(properties.email);
} else if (name === 'LOGOUT') {
reset();
}
Expand Down

0 comments on commit 6cd1fde

Please sign in to comment.