MAPG-40 use Math.floor instead of accidentally used Math.ceil

This commit is contained in:
Bence Pőcze 2020-05-21 15:19:05 +02:00
parent d7fbb717bc
commit 3d636be4ea

View File

@ -56,7 +56,7 @@
},
calculateScoreBarProperties: function (score) {
var percent = Math.ceil((score / Core.MAX_SCORE) * 100);
var percent = Math.floor((score / Core.MAX_SCORE) * 100);
var color;
if (percent >= 90) {