From: Vincent Vanwaelscappel Date: Thu, 5 Oct 2023 15:08:53 +0000 (+0200) Subject: wait #6357 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3068b8fdc29905905cf6b9b39fbf73ee8b32c2ae;p=fluidbook-toolbox-quiz.git wait #6357 @0.25 --- diff --git a/js/quiz.score.js b/js/quiz.score.js index 64e3491..9f501a2 100644 --- a/js/quiz.score.js +++ b/js/quiz.score.js @@ -138,7 +138,7 @@ QuizScore.prototype = { }, isPassed: function () { - let threshold = parseInt(this.quiz.data.threshold); + let threshold = Math.min(99.99, parseFloat(this.quiz.data.threshold)); return isNaN(threshold) || this.getNormalizedScore(true) > threshold; },