Skip to content

Commit c30f7ce

Browse files
committed
fix: iahdagubsyu
1 parent 6fbd410 commit c30f7ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main-event/main-event-quiz/main-event-quiz.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export class MainEventQuizService {
385385
}
386386

387387
const allCorrect = correctAnswers === totalQuestions && totalQuestions > 0;
388-
const pointPerCorrectAnswer = 100 / totalQuestions;
388+
const pointPerCorrectAnswer = Math.floor(100 / totalQuestions);
389389
const points = correctAnswers * pointPerCorrectAnswer;
390390
const percentage =
391391
totalQuestions > 0

0 commit comments

Comments
 (0)