mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix abridgeScore
This commit is contained in:
parent
e6be24bdb2
commit
f6a9b83b11
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export function abridgeScore(score: number): string {
|
||||||
return "0pt";
|
return "0pt";
|
||||||
}
|
}
|
||||||
if (Math.abs(score) > 999) {
|
if (Math.abs(score) > 999) {
|
||||||
return (Math.sign(score) * (Math.abs(score) / 1000)).toFixed(1) + "pt";
|
return (Math.sign(score) * (Math.abs(score) / 1000)).toFixed(1) + "kpt";
|
||||||
}
|
}
|
||||||
return (Math.sign(score) * Math.abs(score)).toString() + "pt";
|
return (Math.sign(score) * Math.abs(score)).toString() + "pt";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue