From cfcc2e0cac3d14fe7606c89ba6801344b11614f3 Mon Sep 17 00:00:00 2001 From: nicolasito1411 <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Sat, 19 Aug 2023 10:06:28 +0200 Subject: [PATCH] Making questions one choice only --- components/quizzes/step.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/quizzes/step.tsx b/components/quizzes/step.tsx index 5ae775c8..80c5f612 100644 --- a/components/quizzes/step.tsx +++ b/components/quizzes/step.tsx @@ -51,7 +51,7 @@ const Step: FunctionComponent = ({ useEffect(() => { if (!question) return; if (question.kind === "ordering") return; - if (question.options.length === selectedOptions.length) + if (selectedOptions.length > 1) setSelectedOptions(selectedOptions.slice(1)); }, [question, selectedOptions]);