Skip to content

Commit 31f188b

Browse files
committed
fix(auth): set errorHandled for EMAIL_NOT_VERIFIED to prevent duplicate error
1 parent abb39e0 commit 31f188b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/app/(auth)/login/login-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export default function LoginPage({
217217

218218
// EMAIL_NOT_VERIFIED is handled by the catch block which redirects to /verify
219219
if (ctx.error.code?.includes('EMAIL_NOT_VERIFIED')) {
220+
errorHandled = true
220221
return
221222
}
222223

0 commit comments

Comments
 (0)