diff --git a/lib/components/ViewPublicationPage/ContactForm/ContactForm.tsx b/lib/components/ViewPublicationPage/ContactForm/ContactForm.tsx index d74acd4..b15c060 100644 --- a/lib/components/ViewPublicationPage/ContactForm/ContactForm.tsx +++ b/lib/components/ViewPublicationPage/ContactForm/ContactForm.tsx @@ -200,6 +200,9 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => { const minDigits = isRussianNumber ? 11 : 10; const isPhoneValid = phone.trim().length === 0 || digitsOnly.length >= minDigits; + // Проверяем валидность email - не должен быть пустым + const isEmailValid = email.trim().length === 0; + // Обработчик изменения телефона const handlePhoneChange = (newPhone: string) => { setPhone(newPhone); @@ -332,7 +335,7 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {