diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 1c2fcf1..a502f8b 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -445,11 +445,18 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt } if (status === 'finished') { + const lastIndex = questions.length ? questions.length - 1 : 0; return (

Nice work!

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

+