устранена цикличность показа результатов и формы контактов

This commit is contained in:
Tamara 2024-03-29 16:36:38 +03:00
parent bbd6a3b817
commit 84d63b9302

@ -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,10 +141,12 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => {
} catch (e) {
enqueueSnackbar("повторите попытку позже");
}
if(settings.cfg.resultInfo.showResultForm === "after"){
onShowResult();
}
}
setFire(false);
}