From 55005aba1f5c58f7df364d7bed9a99885cbadc30 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 8 Jan 2026 02:26:15 +0100 Subject: [PATCH] Add 'Back' button to QuizRunner component --- client/src/components/QuizRunner.tsx | 7 +++++++ 1 file changed, 7 insertions(+) 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}.

+