diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index f2b860d..dadf64a 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -492,10 +492,19 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt const lastIndex = questions.length ? questions.length - 1 : 0; const isRandomMode = mode === 'all'; const entryLink = !isRandomMode && currentQuestion ? `/entry/${encodeURIComponent(currentQuestion.entryId)}` : null; + const answered = history.filter(Boolean) as { response: any; correct: boolean; skipped: boolean; showExplanation: boolean }[]; + const correctCount = answered.filter((h) => h.correct).length; + const skippedCount = answered.filter((h) => h.skipped).length; + const wrongCount = Math.max(0, answered.length - correctCount - skippedCount); return (

Nice work!

You scored {score} out of {questions.length}.

+
+
Correct {correctCount}
+
Wrong {wrongCount}
+
Skipped {skippedCount}
+