Skip to content

Commit

Permalink
Dont show elo when no rank
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesMerkt committed Mar 24, 2023
1 parent a9d32dd commit ec2c3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PlayerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const PlayerCard: React.FC<PlayerCardProps> = ({

<Group position="apart" grow>
<PlayerRank rank={rank} />
<PlayerELO rating={rating} />
<PlayerELO rating={rank ? rating : undefined} />
<PlayerStreak streak={streak} />
<PlayerWinRatio wins={wins} losses={losses} />
<PlayerWins wins={wins} />
Expand Down

0 comments on commit ec2c3ea

Please sign in to comment.