add validation message while inn alredy registred
This commit is contained in:
@@ -330,6 +330,8 @@ export async function registration(
|
||||
}
|
||||
});
|
||||
|
||||
} else if (typedError.message_desc === 'Company already exists') {
|
||||
errors['inn'] = 'company-already-registered'
|
||||
} else {
|
||||
errors['server'] = 'unknown-error'
|
||||
}
|
||||
|
||||
@@ -367,6 +367,7 @@
|
||||
"inn-placeholder": "Enter 10 digits",
|
||||
"INN": "INN",
|
||||
"fullName-required": "Please fill in the field correctly.",
|
||||
"fullName-too-short": "Name must be at least 2 characters long."
|
||||
"fullName-too-short": "Name must be at least 2 characters long.",
|
||||
"company-already-registered": "The company is already registered."
|
||||
}
|
||||
}
|
||||
@@ -367,6 +367,7 @@
|
||||
"inn-placeholder": "Введите 10 цифр",
|
||||
"INN": "ИНН",
|
||||
"fullName-required": "Заполните поле корректно.",
|
||||
"fullName-too-short": "Имя должно содержать не менее 2 символов."
|
||||
"fullName-too-short": "Имя должно содержать не менее 2 символов.",
|
||||
"company-already-registered": "Компания уже зарегистрирована."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user