From 3068b8fdc29905905cf6b9b39fbf73ee8b32c2ae Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 5 Oct 2023 17:08:53 +0200 Subject: [PATCH] wait #6357 @0.25 --- js/quiz.score.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }, -- 2.39.5