From 3c5e702ee209e35edbe8749414253d9b48d39322 Mon Sep 17 00:00:00 2001 From: Erik Langhaug Date: Thu, 22 Aug 2024 09:59:17 +0200 Subject: [PATCH] HFP-3907 Fix toggle dot answered state for last question --- js/questionset.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/questionset.js b/js/questionset.js index 29c64a7..dc201c3 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -641,6 +641,8 @@ H5P.QuestionSet = function (options, contentId, contentData) { } if (currentQuestion + direction >= questionInstances.length) { + toggleCurrentDot(currentQuestion, false); + toggleAnsweredDot(currentQuestion, questionInstances[currentQuestion].getAnswerGiven()); _displayEndGame(); } else {