diff --git a/src/pages/ViewPublicationPage/ContactForm.tsx b/src/pages/ViewPublicationPage/ContactForm.tsx index a781ceb..380e5c7 100644 --- a/src/pages/ViewPublicationPage/ContactForm.tsx +++ b/src/pages/ViewPublicationPage/ContactForm.tsx @@ -217,7 +217,7 @@ export const ContactForm = ({ enqueueSnackbar("повторите попытку позже") } - if (settings?.cfg.resultInfo.when === "after" || settings?.cfg.resultInfo.when === "email" && !checkEmptyData({ resultData: resultQuestion })) { + if ((settings?.cfg.resultInfo.when === "after" || settings?.cfg.resultInfo.when === "email") && !checkEmptyData({ resultData: resultQuestion })) { setShowContactForm(false) setShowResultForm(true) } @@ -340,7 +340,7 @@ const CustomInput = ({ title, desc, Icon, onChange }: any) => {