update how player ranks are shown in countries
All checks were successful
deploy / deploy (push) Successful in 1m13s
All checks were successful
deploy / deploy (push) Successful in 1m13s
This commit is contained in:
parent
d769b0d15e
commit
3b7f458d5c
@ -57,7 +57,7 @@ export default function GlobalRanking({
|
||||
{players.map((player) => (
|
||||
<tr key={player.rank} className="border-b border-border">
|
||||
<PlayerRanking
|
||||
showCountryFlag={country ? false : true}
|
||||
showCountryFlag={country == undefined ? false : true}
|
||||
player={player}
|
||||
/>
|
||||
</tr>
|
||||
|
@ -21,7 +21,12 @@ export default function PlayerRanking({
|
||||
|
||||
return (
|
||||
<>
|
||||
<td className="px-4 py-2">#{formatNumber(player.rank)}</td>
|
||||
<td className="px-4 py-2">
|
||||
#{formatNumber(showCountryFlag ? player.countryRank : player.rank)}{" "}
|
||||
<span className="text-sm">
|
||||
{showCountryFlag && "(#" + player.rank + ")"}
|
||||
</span>
|
||||
</td>
|
||||
<td className="flex items-center gap-2 px-4 py-2">
|
||||
<Avatar url={player.profilePicture} label="Avatar" size={24} />
|
||||
{showCountryFlag && (
|
||||
|
Loading…
Reference in New Issue
Block a user