Fix pp formatting

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

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