diff --git a/components/partials/auth/login-form.tsx b/components/partials/auth/login-form.tsx index a85555b0..d12c5e8a 100644 --- a/components/partials/auth/login-form.tsx +++ b/components/partials/auth/login-form.tsx @@ -279,17 +279,16 @@ const LoginForm = () => { return false; } const msg = response?.data?.message; - onSubmit(data); - // if (msg == "Continue to setup email") { - // setStep(2); - // } else if (msg == "Email is valid and OTP has been sent") { - // setStep(3); - // } else if (msg == "Username & password valid") { - // onSubmit(data); - // } else { - // error("Username / password incorrect"); - // } + if (msg == "Continue to setup email") { + setStep(2); + } else if (msg == "Email is valid and OTP has been sent") { + setStep(3); + } else if (msg == "Username & password valid") { + onSubmit(data); + } else { + error("Username / password incorrect"); + } // else { // setStep(1); // }