about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-20 15:40:03 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-20 15:40:03 +0000
commit09e9769eeaa89e09e3b63c48533abc46f193cbfd (patch)
tree8bff2c89888702a1860105a88aee56c6538eba8f
parentd24ffba01d7aa5a505b4e3d319dfecffc3d039ca (diff)
downloadvoidsky-09e9769eeaa89e09e3b63c48533abc46f193cbfd.tar.zst
add logEvent that got lost in merge from main
-rw-r--r--src/screens/Login/ChooseAccountForm.tsx5
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}`))