Hide email field in profile edit modal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,10 +12,6 @@ export function validateProfileForm(form) {
|
||||
errors.lastName = i18n.t('profile.validateSurnameRequired');
|
||||
}
|
||||
|
||||
if (form.email && !form.email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)) {
|
||||
errors.email = i18n.t('profile.validateEmailInvalid');
|
||||
}
|
||||
|
||||
if (form.phone && form.phone.replace(/\D/g, "").length < 11) {
|
||||
errors.phone = i18n.t('profile.validatePhoneInvalid');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user