Add thousands separators to pinball score

This commit is contained in:
Tanner Collin 2023-01-17 23:18:00 +00:00
parent efb29d4254
commit 8905735886

View File

@ -230,7 +230,7 @@ export function Members(props) {
</Item.Header> </Item.Header>
{sort === 'pinball_score' ? {sort === 'pinball_score' ?
<> <>
<Item.Description>Score: {x.member.pinball_score || 'Unknown'}</Item.Description> <Item.Description>Score: {x.member.pinball_score.toLocaleString() || 'Unknown'}</Item.Description>
<Item.Description>Rank: {i === 0 ? 'Pinball Wizard' : 'Not the Pinball Wizard'}</Item.Description> <Item.Description>Rank: {i === 0 ? 'Pinball Wizard' : 'Not the Pinball Wizard'}</Item.Description>
</> </>
: :