fix leaderboard when 100%

This commit is contained in:
evanpelle
2024-10-18 17:01:09 -07:00
parent 6933c6418c
commit a9938f8329
@@ -185,6 +185,9 @@ export class Leaderboard extends LitElement implements Layer {
function formatPercentage(value: number): string { function formatPercentage(value: number): string {
const perc = value * 100 const perc = value * 100
if (perc > 99.5) {
return "100%"
}
if (perc < .01) { if (perc < .01) {
return "0%" return "0%"
} }