From 1a09ea3d80de66ecfd481b1282268f08231e97d0 Mon Sep 17 00:00:00 2001 From: RolimirKal Date: Sun, 9 Nov 2025 02:26:57 -0500 Subject: [PATCH] -decimals - round decimals on leaderboard --- timer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/timer.js b/timer.js index a1935cc..ef76dfb 100644 --- a/timer.js +++ b/timer.js @@ -314,7 +314,7 @@ class TimerRenderer { this.topusers_user1_num.textContent = "1"; this.topusers_user1_name.textContent = users[0].user_name; this.topusers_userdupe1_name.textContent = users[0].user_name; - this.topusers_user1_score.textContent = users[0].amount; + this.topusers_user1_score.textContent = Math.round(users[0].amount); //this.topusers_user1_name.style.animationDuration = `${this.topusers_user1_name.getBoundingClientRect().width / 50}s`; } else { this.topusers_user1_num.textContent = "1"; @@ -327,7 +327,7 @@ class TimerRenderer { this.topusers_user2_num.textContent = "2"; this.topusers_user2_name.textContent = users[1].user_name; this.topusers_userdupe2_name.textContent = users[1].user_name; - this.topusers_user2_score.textContent = users[1].amount; + this.topusers_user2_score.textContent = Math.round(users[1].amount); //this.topusers_user2_name.style.animationDuration = `${this.topusers_user2_name.getBoundingClientRect().width / 50}s`; } else { this.topusers_user2_num.textContent = "2"; @@ -340,7 +340,7 @@ class TimerRenderer { this.topusers_user3_num.textContent = "3"; this.topusers_user3_name.textContent = users[2].user_name; this.topusers_userdupe3_name.textContent = users[2].user_name; - this.topusers_user3_score.textContent = users[2].amount; + this.topusers_user3_score.textContent = Math.round(users[2].amount); //this.topusers_user3_name.style.animationDuration = `${this.topusers_user3_name.getBoundingClientRect().width / 50}s`; } else { this.topusers_user3_num.textContent = "3";