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 {
|
} else {
|
||||||
errors['server'] = 'unknown-error'
|
errors['server'] = 'unknown-error'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -367,6 +367,7 @@
|
|||||||
"inn-placeholder": "Enter 10 digits",
|
"inn-placeholder": "Enter 10 digits",
|
||||||
"INN": "INN",
|
"INN": "INN",
|
||||||
"fullName-required": "Please fill in the field correctly.",
|
"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-placeholder": "Введите 10 цифр",
|
||||||
"INN": "ИНН",
|
"INN": "ИНН",
|
||||||
"fullName-required": "Заполните поле корректно.",
|
"fullName-required": "Заполните поле корректно.",
|
||||||
"fullName-too-short": "Имя должно содержать не менее 2 символов."
|
"fullName-too-short": "Имя должно содержать не менее 2 символов.",
|
||||||
|
"company-already-registered": "Компания уже зарегистрирована."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user