fix: ceil the percentage

This commit is contained in:
Jannat Patel
2023-11-22 17:49:47 +05:30
parent 479be0b8ee
commit a17a7453e7

View File

@@ -134,7 +134,7 @@ const quiz_summary = (e = undefined) => {
$(".quiz-footer span").addClass("hide");
$("#quiz-form").prepend(
`<div class="summary bold-heading text-center">
${__("You got")} ${data.message.percentage}% ${__("correct answers")}
${__("You got")} ${Math.ceil(data.message.percentage)}% ${__("correct answers")}
</div>
<div class="summary bold-heading text-center mt-2">
${__("Your score is")} ${data.message.score}