diff --git a/src/Components/Auth/Login.tsx b/src/Components/Auth/Login.tsx index c2acb88cf0c..371a3510859 100644 --- a/src/Components/Auth/Login.tsx +++ b/src/Components/Auth/Login.tsx @@ -92,15 +92,14 @@ export const Login = (props: { forgot?: boolean }) => { const handleSubmit = async (e: any) => { e.preventDefault(); - setLoading(true); invalidateFiltersCache(); - const validated = validateData(); - if (!validated) return; - + if (!validated) { + setLoading(false); + return; + } const { res } = await signIn(validated); - setCaptcha(res?.status === 429); setLoading(false); };