diff --git a/src/utils.ts b/src/utils.ts index f084e3e..5c0721b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -12,14 +12,11 @@ export function abridgeScore(score: number): string { if (Math.abs(score) < 1) { return "unknown"; } - if (Math.abs(score) < 10) { - return score.toString() + "+" - } if (Math.abs(score) > 999){ - return (Math.sign(score) * (Math.abs(score) / 1000)).toFixed(1) + "k+" + return (Math.sign(score) * (Math.abs(score) / 1000)).toFixed(1) + "pt" } - return (Math.sign(score) * Math.abs(score)).toString().slice(0, -1) + "0+"; + return (Math.sign(score) * Math.abs(score)).toString() + "pt"; }