diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 498213c..b689275 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -234,11 +234,7 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt const startQuiz = async () => { const ids: string[] = - mode === 'all' - ? entries.map((e) => e.id) - : mode === 'selected' - ? selectedIds - : selectedIds.slice(0, 1); + mode === 'all' ? entries.map((e) => e.id) : selectedIds.length ? selectedIds.slice(0, 1) : entries.map((e) => e.id); if (!ids.length) { setError('Pick at least one entry to quiz on.'); @@ -322,73 +318,14 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt if (status === 'setup') { return (
-
-
-

Quiz Wizard

-

Pick a mode

-

Build a 10-question run from all entries, a custom set, or a single reel.

-
-
- -
- - - -
- - {mode === 'selected' && ( -
-

Check the entries you want in the pool.

-
- {entries.map((entry) => ( - - ))} -
-
- )} - - {mode === 'single' && ( -
-

Pick the entry to drill.

- -
- )} - +

Building your quiz…

+

Preparing 10 questions from {mode === 'single' ? 'this entry' : 'all entries'}.

{error &&
{error}
} - - + {!autoStart && ( + + )}
); }