From: Vincent Vanwaelscappel Date: Thu, 12 Oct 2023 08:40:11 +0000 (+0200) Subject: wip #6387 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7342cd9a64c7447733529d38e1b49c3c441e2748;p=fluidbook-toolbox-quiz.git wip #6387 @0.5 --- 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) {