Skip to content

Commit 0d19cd0

Browse files
committed
Address comment
1 parent a8e0013 commit 0d19cd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ function OnboardingModalNavigator() {
7474
// Publish a sign_up event when we start the onboarding flow. This should track basic sign ups
7575
// as well as Google and Apple SSO.
7676
useEffect(() => {
77-
if (!accountID || signUpEventPublishedForAccountID === accountID) {
77+
if (!accountID || !email || signUpEventPublishedForAccountID === accountID) {
7878
return;
7979
}
8080

8181
signUpEventPublishedForAccountID = accountID;
82-
GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.SIGN_UP.NAME, accountID, email ?? '');
82+
GoogleTagManager.publishEvent(CONST.ANALYTICS.EVENT.SIGN_UP.NAME, accountID, email);
8383
}, [accountID, email]);
8484

8585
const handleOuterClick = useCallback(() => {

0 commit comments

Comments
 (0)