Skip to content

Commit

Permalink
feat: rm duplicated metrics calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Sep 17, 2024
1 parent b035073 commit a0b9fba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/SignInButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ export const SignInButton = (props: SignInButtonProps) => {
history.push(`/tos_acceptance?redirectTo=${redirectPath}`);
}
} else {
// User is authenticated, registered and has accepted ToS.
// Log sign-in and redirect to destination.
await Metrics.identify(Storage.getAnonymousId());
await Metrics.syncProfile();
await Metrics.captureEvent(eventList.userSignIn);
// User is authenticated, registered and has accepted ToS: redirect to destination.
if (isNil(redirectPath)) {
await Navigation.back(Storage.getCurrentUser(), history);
} else {
Expand Down

0 comments on commit a0b9fba

Please sign in to comment.