Fix abridgeScore

This commit is contained in:
ryo-ma 2020-08-30 19:21:04 +09:00
parent e6be24bdb2
commit f6a9b83b11

View file

@ -13,7 +13,7 @@ export function abridgeScore(score: number): string {
return "0pt";
}
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";
}