Fix pp formatting

This commit is contained in:
Liam 2022-10-21 17:28:18 +01:00
parent a2da018644
commit 87af768a10

View File

@ -433,7 +433,10 @@ export default class Overlay extends Component {
<div className={styles.overlay}>
{showPlayerStats && !loadingPlayerData ? (
<PlayerStats
pp={data.pp.toLocaleString()}
pp={data.pp.toLocaleString("en-US", {
maximumFractionDigits: 2,
minimumFractionDigits: 2,
})}
globalPos={data.rank.toLocaleString()}
country={data.country}
countryRank={data.countryRank.toLocaleString()}