Skip to content

Commit 38b6ee5

Browse files
committed
Don't show runner-up for 2 player games
Or when the runner-up found no sets.
1 parent bd34702 commit 38b6ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/GamePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function GamePage({ match }) {
446446
<Typography variant="body1">
447447
Winner: <User id={leaderboard[0]} />
448448
</Typography>
449-
{leaderboard.length >= 2 && (
449+
{leaderboard.length > 2 && scores[leaderboard[1]] && (
450450
<Typography variant="body2">
451451
Runner-up: <User id={leaderboard[1]} />
452452
</Typography>

0 commit comments

Comments
 (0)