при типе результата почта - стр резулта всё равно выводится после ФК
This commit is contained in:
parent
00d4b0e34e
commit
bfa8748dcb
@ -137,7 +137,7 @@ export const ContactForm = ({
|
|||||||
<Button
|
<Button
|
||||||
disabled={!ready}
|
disabled={!ready}
|
||||||
variant="contained" onClick={() => {
|
variant="contained" onClick={() => {
|
||||||
if (quiz?.config.resultInfo.when === "after" && !checkEmptyData({ resultData: resultQuestion })) {
|
if ((quiz?.config.resultInfo.when === "after" || quiz?.config.resultInfo.when === "email") && !checkEmptyData({ resultData: resultQuestion })) {
|
||||||
setShowContactForm(false)
|
setShowContactForm(false)
|
||||||
setShowResultForm(true)
|
setShowResultForm(true)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -103,7 +103,7 @@ export const Footer = ({ setCurrentQuestion, question, setShowContactForm, setSh
|
|||||||
console.log("до+заполнена = показать")
|
console.log("до+заполнена = показать")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nextQuestion && quiz?.config.resultInfo.when === "after") {
|
if (nextQuestion && (quiz?.config.resultInfo.when === "after" || quiz?.config.resultInfo.when === "email")) {
|
||||||
if (isEmpty) {
|
if (isEmpty) {
|
||||||
setShowContactForm(true); //после+пустая
|
setShowContactForm(true); //после+пустая
|
||||||
console.log("после+пустая")
|
console.log("после+пустая")
|
||||||
|
|||||||
@ -113,7 +113,7 @@ export const Question = ({ questions }: QuestionProps) => {
|
|||||||
setShowResultForm={setShowResultForm}
|
setShowResultForm={setShowResultForm}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{showResultForm && quiz?.config.resultInfo.when === "after" && (
|
{showResultForm && (quiz?.config.resultInfo.when === "after" || quiz?.config.resultInfo.when === "email") && (
|
||||||
<ResultForm
|
<ResultForm
|
||||||
currentQuestion={currentQuestion}
|
currentQuestion={currentQuestion}
|
||||||
showContactForm={showContactForm}
|
showContactForm={showContactForm}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user