add logEvent that got lost in merge from main

zio/stable
Samuel Newman 2024-03-20 15:40:03 +00:00
parent d24ffba01d
commit 09e9769eea
1 changed files with 5 additions and 0 deletions

View File

@ -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 {Check_Stroke2_Corner0_Rounded as Check} from '#/components/icons/Check'
import * as TextField from '#/components/forms/TextField' import * as TextField from '#/components/forms/TextField'
import {FormContainer} from './FormContainer' import {FormContainer} from './FormContainer'
import {logEvent} from '#/lib/statsig/statsig'
function Group({children}: {children: React.ReactNode}) { function Group({children}: {children: React.ReactNode}) {
const t = useTheme() const t = useTheme()
@ -125,6 +126,10 @@ export const ChooseAccountForm = ({
Toast.show(_(msg`Already signed in as @${account.handle}`)) Toast.show(_(msg`Already signed in as @${account.handle}`))
} else { } else {
await initSession(account) await initSession(account)
logEvent('account:loggedIn', {
logContext: 'ChooseAccountForm',
withPassword: false,
})
track('Sign In', {resumedSession: true}) track('Sign In', {resumedSession: true})
setTimeout(() => { setTimeout(() => {
Toast.show(_(msg`Signed in as @${account.handle}`)) Toast.show(_(msg`Signed in as @${account.handle}`))