]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6357 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2023 15:08:53 +0000 (17:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2023 15:08:53 +0000 (17:08 +0200)
js/quiz.score.js

index 64e349190df14c6c583e2b5952d962257b989cdd..9f501a2e456f39e5ee189124614767e886464fbc 100644 (file)
@@ -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;
     },