diff options
Diffstat (limited to 'src/screens/Signup/StepCaptcha/index.tsx')
-rw-r--r-- | src/screens/Signup/StepCaptcha/index.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screens/Signup/StepCaptcha/index.tsx b/src/screens/Signup/StepCaptcha/index.tsx index d0fc4e934..b2a91a641 100644 --- a/src/screens/Signup/StepCaptcha/index.tsx +++ b/src/screens/Signup/StepCaptcha/index.tsx @@ -6,6 +6,7 @@ import {nanoid} from 'nanoid/non-secure' import {createFullHandle} from '#/lib/strings/handles' import {logger} from '#/logger' +import {logEvent} from 'lib/statsig/statsig' import {ScreenTransition} from '#/screens/Login/ScreenTransition' import {useSignupContext, useSubmitSignup} from '#/screens/Signup/state' import {CaptchaWebView} from '#/screens/Signup/StepCaptcha/CaptchaWebView' @@ -39,6 +40,7 @@ export function StepCaptcha() { const onSuccess = React.useCallback( (code: string) => { setCompleted(true) + logEvent('signup:captchaSuccess', {}) submit(code) }, [submit], @@ -50,6 +52,7 @@ export function StepCaptcha() { type: 'setError', value: _(msg`Error receiving captcha response.`), }) + logEvent('signup:captchaFailure', {}) logger.error('Signup Flow Error', { registrationHandle: state.handle, error, |