From b3dfe405633678d0f7b7ae79c4a3828da2f1cdf3 Mon Sep 17 00:00:00 2001 From: nflnkr Date: Sun, 2 Jun 2024 14:08:09 +0300 Subject: [PATCH] use showfc flag from quiz config --- .../ViewPublicationPage/ResultForm.tsx | 28 ++++++++++--------- lib/model/settingsData.ts | 8 +++--- lib/utils/hooks/useQuestionFlowControl.ts | 7 +++-- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/lib/components/ViewPublicationPage/ResultForm.tsx b/lib/components/ViewPublicationPage/ResultForm.tsx index f6d8b4e..24ca994 100644 --- a/lib/components/ViewPublicationPage/ResultForm.tsx +++ b/lib/components/ViewPublicationPage/ResultForm.tsx @@ -229,19 +229,21 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => { bottom: 0, }} > - {settings.cfg.resultInfo.showResultForm === "before" && !settings.cfg.score && ( - - )} + {settings.cfg.resultInfo.showResultForm === "before" && + settings.cfg.showfc !== false && + !settings.cfg.score && ( + + )} {settings.cfg.resultInfo.showResultForm === "after" && resultQuestion.content.redirect && (