mobile: fix login allowed without entering password field

This commit is contained in:
Ammar Ahmed
2026-06-08 09:15:28 +05:00
committed by Abdullah Atta
parent e01605d85e
commit 93ececf3e6

View File

@@ -58,7 +58,7 @@ export const useLogin = (
setLoading(true);
switch (step) {
case LoginSteps.emailAuth: {
if (formRef.current.validateField("email")) {
if (!formRef.current.validate()) {
setLoading(false);
return;
}