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);