From 7dbf2ab6c29f37cc56c5b94aaea357dadaa46903 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Tue, 10 Dec 2024 10:07:54 +0100 Subject: [PATCH] do not rerequest code --- apps/login/src/components/login-otp.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/login/src/components/login-otp.tsx b/apps/login/src/components/login-otp.tsx index 0b0f8c2f0c3..21d895e3708 100644 --- a/apps/login/src/components/login-otp.tsx +++ b/apps/login/src/components/login-otp.tsx @@ -59,7 +59,7 @@ export function LoginOTP({ }); useEffect(() => { - if (!initialized.current && ["email", "sms"].includes(method)) { + if (!initialized.current && ["email", "sms"].includes(method) && !code) { initialized.current = true; setLoading(true); updateSessionForOTPChallenge()