mobile: fix login allowed without entering password field

This commit is contained in:
Ammar Ahmed
2026-06-08 09:15:28 +05:00
parent 34c4d3e2d1
commit fff13b96ba

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;
}