Skip to content

Commit

Permalink
Making questions one choice only
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Aug 19, 2023
1 parent 7af327e commit cfcc2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/quizzes/step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Step: FunctionComponent<StepProps> = ({
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]);

Expand Down

0 comments on commit cfcc2e0

Please sign in to comment.