устранена цикличность показа результатов и формы контактов
This commit is contained in:
parent
bbd6a3b817
commit
84d63b9302
@ -68,7 +68,7 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!resultQuestion) throw new Error("Result question not found");
|
if (!resultQuestion) throw new Error("Result question not found");
|
||||||
|
console.log("yfcnhjqrb", settings.cfg.resultInfo.showResultForm)
|
||||||
const inputHC = async () => {
|
const inputHC = async () => {
|
||||||
const FC = settings.cfg.formContact.fields || settings.cfg.formContact;
|
const FC = settings.cfg.formContact.fields || settings.cfg.formContact;
|
||||||
const body = {} as any;
|
const body = {} as any;
|
||||||
@ -141,8 +141,10 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
enqueueSnackbar("повторите попытку позже");
|
enqueueSnackbar("повторите попытку позже");
|
||||||
}
|
}
|
||||||
|
if(settings.cfg.resultInfo.showResultForm === "after"){
|
||||||
|
onShowResult();
|
||||||
|
}
|
||||||
|
|
||||||
onShowResult();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setFire(false);
|
setFire(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user