From a17a7453e7bec56f729bea7a59e1bad63751f6ec Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 22 Nov 2023 17:49:47 +0530 Subject: [PATCH] fix: ceil the percentage --- lms/templates/quiz/quiz.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/quiz/quiz.js b/lms/templates/quiz/quiz.js index 186ba447..3491c5e4 100644 --- a/lms/templates/quiz/quiz.js +++ b/lms/templates/quiz/quiz.js @@ -134,7 +134,7 @@ const quiz_summary = (e = undefined) => { $(".quiz-footer span").addClass("hide"); $("#quiz-form").prepend( `
- ${__("You got")} ${data.message.percentage}% ${__("correct answers")} + ${__("You got")} ${Math.ceil(data.message.percentage)}% ${__("correct answers")}
${__("Your score is")} ${data.message.score}