diff --git a/src/pages/ViewPublicationPage/ContactForm.tsx b/src/pages/ViewPublicationPage/ContactForm.tsx index 038afb9..c938016 100644 --- a/src/pages/ViewPublicationPage/ContactForm.tsx +++ b/src/pages/ViewPublicationPage/ContactForm.tsx @@ -171,13 +171,20 @@ export const ContactForm = ({ disabled={!ready} variant="contained" onClick={async () => { //@ts-ignore - if (settings?.cfg.resultInfo.when === "after" && !checkEmptyData({ resultData: resultQuestion })) { + if (!checkEmptyData({ resultData: resultQuestion })) { + try { + await inputHC() + } catch (e) { + enqueueSnackbar("повторите попытку позже") + } + + } + if (settings?.cfg.resultInfo.when === "after") { try { - await inputHC() setShowContactForm(false) setShowResultForm(true) } catch (e) { - "повторите попытку позже" + enqueueSnackbar("повторите попытку позже") } } }}>