From 57f4f098f779512485841d2af06c965ac6dfe688 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Tue, 11 Oct 2022 19:38:22 +0530 Subject: [PATCH] feat: onsubmit is updated (#1628) --- frontend/src/container/Login/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/container/Login/index.tsx b/frontend/src/container/Login/index.tsx index b08ff0f353..0fd6673844 100644 --- a/frontend/src/container/Login/index.tsx +++ b/frontend/src/container/Login/index.tsx @@ -117,6 +117,12 @@ function Login({ try { event.preventDefault(); event.persist(); + + if (!precheckComplete) { + onNextHandler(); + return; + } + setIsLoading(true); const response = await loginApi({ @@ -171,6 +177,7 @@ function Login({ }; const { sso, canSelfRegister } = precheckResult; + return (