mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 18:53:26 +08:00
fix(account page): use same rounding for top percentage as on leaderboard (fehmer) (#5270)
This commit is contained in:
parent
0df1ed163d
commit
1890dbdff8
1 changed files with 1 additions and 1 deletions
|
@ -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) + "%";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue