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'
|
||||
? 'البريد الإلكتروني مطلوب'
|
||||
: 'رقم الهاتف مطلوب';
|
||||
} else if (loginMethod === 'email' && !isEmail(formData.credential)) {
|
||||
newErrors.credential = 'البريد الإلكتروني غير صالح';
|
||||
} else if (loginMethod === 'phone' && !isPhoneNumber(formData.credential)) {
|
||||
// } else if (loginMethod === 'email' && !isEmail(formData.credential)) {
|
||||
// newErrors.credential = 'البريد الإلكتروني غير صالح';
|
||||
// } else if (loginMethod === 'phone' && !isPhoneNumber(formData.credential)) {
|
||||
newErrors.credential = 'رقم الهاتف غير صالح';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user