From 09e9769eeaa89e09e3b63c48533abc46f193cbfd Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 20 Mar 2024 15:40:03 +0000 Subject: [PATCH] add logEvent that got lost in merge from main --- src/screens/Login/ChooseAccountForm.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/screens/Login/ChooseAccountForm.tsx b/src/screens/Login/ChooseAccountForm.tsx index dd807ba3..6e32d472 100644 --- a/src/screens/Login/ChooseAccountForm.tsx +++ b/src/screens/Login/ChooseAccountForm.tsx @@ -18,6 +18,7 @@ import {ChevronRight_Stroke2_Corner0_Rounded as Chevron} from '#/components/icon import {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check' import * as TextField from '#/components/forms/TextField' import {FormContainer} from './FormContainer' +import {logEvent} from '#/lib/statsig/statsig' function Group({children}: {children: React.ReactNode}) { const t = useTheme() @@ -125,6 +126,10 @@ export const ChooseAccountForm = ({ Toast.show(_(msg`Already signed in as @${account.handle}`)) } else { await initSession(account) + logEvent('account:loggedIn', { + logContext: 'ChooseAccountForm', + withPassword: false, + }) track('Sign In', {resumedSession: true}) setTimeout(() => { Toast.show(_(msg`Signed in as @${account.handle}`))