Skip to content

Commit

Permalink
fix(account page): use same rounding for top percentage as on leaderb…
Browse files Browse the repository at this point in the history
…oard (fehmer) (#5270)
  • Loading branch information
fehmer committed Apr 2, 2024
1 parent 0df1ed1 commit 1890dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/elements/profile.ts
Expand Up @@ -433,5 +433,5 @@ $(window).on("resize", () => {
function formatTopPercentage(lbRank: SharedTypes.RankAndCount): string {
if (lbRank.rank === undefined) return "-";
if (lbRank.rank === 1) return "GOAT";
return "Top " + Format.percentage((lbRank.rank / lbRank.count) * 100);
return "Top " + Misc.roundTo2((lbRank.rank / lbRank.count) * 100) + "%";
}

0 comments on commit 1890dbd

Please sign in to comment.