disabled the validation on email
All checks were successful
Build frontend / build (push) Successful in 1m9s
All checks were successful
Build frontend / build (push) Successful in 1m9s
This commit is contained in:
@ -60,9 +60,9 @@ export default function LoginPage() {
|
|||||||
newErrors.credential = loginMethod === 'email'
|
newErrors.credential = loginMethod === 'email'
|
||||||
? 'البريد الإلكتروني مطلوب'
|
? 'البريد الإلكتروني مطلوب'
|
||||||
: 'رقم الهاتف مطلوب';
|
: 'رقم الهاتف مطلوب';
|
||||||
} else if (loginMethod === 'email' && !isEmail(formData.credential)) {
|
// } else if (loginMethod === 'email' && !isEmail(formData.credential)) {
|
||||||
newErrors.credential = 'البريد الإلكتروني غير صالح';
|
// newErrors.credential = 'البريد الإلكتروني غير صالح';
|
||||||
} else if (loginMethod === 'phone' && !isPhoneNumber(formData.credential)) {
|
// } else if (loginMethod === 'phone' && !isPhoneNumber(formData.credential)) {
|
||||||
newErrors.credential = 'رقم الهاتف غير صالح';
|
newErrors.credential = 'رقم الهاتف غير صالح';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user