diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 15:40:03 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 15:40:03 +0000 |
commit | 09e9769eeaa89e09e3b63c48533abc46f193cbfd (patch) | |
tree | 8bff2c89888702a1860105a88aee56c6538eba8f /src | |
parent | d24ffba01d7aa5a505b4e3d319dfecffc3d039ca (diff) | |
download | voidsky-09e9769eeaa89e09e3b63c48533abc46f193cbfd.tar.zst |
add logEvent that got lost in merge from main
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Login/ChooseAccountForm.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screens/Login/ChooseAccountForm.tsx b/src/screens/Login/ChooseAccountForm.tsx index dd807ba3a..6e32d472e 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}`)) |