From 656ba9473c1dd41f18462dc8dd2721402fa7108d Mon Sep 17 00:00:00 2001 From: Nastya Date: Mon, 28 Jul 2025 03:31:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=9A=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=BA=D0=B0=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B2=D0=B5=D0=B4=D1=83=D1=82=20=D0=BF=D0=BE=D1=87=D1=82?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewPublicationPage/ContactForm/ContactForm.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) => {