From 7342cd9a64c7447733529d38e1b49c3c441e2748 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 12 Oct 2023 10:40:11 +0200 Subject: [PATCH] wip #6387 @0.5 --- js/quiz.score.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/quiz.score.js b/js/quiz.score.js index 3f82ec8..d19de7b 100644 --- a/js/quiz.score.js +++ b/js/quiz.score.js @@ -38,6 +38,7 @@ QuizScore.prototype = { }, checkQuestion: function (questionIndex) { + questionIndex = parseInt(questionIndex); let question = this.quiz.data.questions[questionIndex]; let ok = 'ok'; @@ -127,7 +128,7 @@ QuizScore.prototype = { } else { log.score = 0; } - this.logQuestions[questionIndex] = log; + this.logQuestions[questionIndex + 1] = log; }, getNormalizedScore: function (pct) { -- 2.39.5