This commit is contained in:
2024-04-28 05:07:41 +03:00
parent d0a32b938c
commit c72187f75d

View File

@@ -42,7 +42,7 @@ const ClientFormModal = ({
address: (address: string | undefined | null) => (address && address.trim() !== '') ? null : "Необходимо ввести адрес", address: (address: string | undefined | null) => (address && address.trim() !== '') ? null : "Необходимо ввести адрес",
phoneNumber: (phoneNumber: string | undefined | null) => (phoneNumber && phoneNumber.trim() !== '') ? null : "Необходимо ввести номер телефона", phoneNumber: (phoneNumber: string | undefined | null) => (phoneNumber && phoneNumber.trim() !== '') ? null : "Необходимо ввести номер телефона",
email: (email: string | undefined | null) => (email && email.trim() !== '') ? null : "Необходимо ввести почту", email: (email: string | undefined | null) => (email && email.trim() !== '') ? null : "Необходимо ввести почту",
inn: (inn: number | undefined | null) => (inn && getDigitsCount(inn) >= 10) ? null : "ИНН должен содержать не менее 10 цифр", inn: (inn: string | undefined | null) => (inn && getDigitsCount(parseInt(inn)) >= 10) ? null : "ИНН должен содержать не менее 10 цифр",
} }
} }
}) })