From a0b9fba62042f5b2e641078f74fe9e9c29dcd0c0 Mon Sep 17 00:00:00 2001 From: rushtong Date: Tue, 17 Sep 2024 11:12:18 -0400 Subject: [PATCH] feat: rm duplicated metrics calls --- src/components/SignInButton.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/SignInButton.tsx b/src/components/SignInButton.tsx index 69e261642..aff537f94 100644 --- a/src/components/SignInButton.tsx +++ b/src/components/SignInButton.tsx @@ -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 {