fix: ceil the percentage
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user