From 84d63b93024a6eab8db2a4fc148bebb5b1f086e1 Mon Sep 17 00:00:00 2001 From: Tamara Date: Fri, 29 Mar 2024 16:36:38 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=86=D0=B8=D0=BA=D0=BB=D0=B8=D1=87=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D0=B0=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B7=D1=83=D0=BB=D1=8C=D1=82=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B8=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/components/ViewPublicationPage/ContactForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/components/ViewPublicationPage/ContactForm.tsx b/lib/components/ViewPublicationPage/ContactForm.tsx index 40a0aff..fa8cfba 100644 --- a/lib/components/ViewPublicationPage/ContactForm.tsx +++ b/lib/components/ViewPublicationPage/ContactForm.tsx @@ -68,7 +68,7 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => { }); if (!resultQuestion) throw new Error("Result question not found"); - + console.log("yfcnhjqrb", settings.cfg.resultInfo.showResultForm) const inputHC = async () => { const FC = settings.cfg.formContact.fields || settings.cfg.formContact; const body = {} as any; @@ -141,8 +141,10 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => { } catch (e) { enqueueSnackbar("повторите попытку позже"); } + if(settings.cfg.resultInfo.showResultForm === "after"){ + onShowResult(); + } - onShowResult(); } setFire(false);