Skip to content

Commit

Permalink
No premature leaving to protect user funds
Browse files Browse the repository at this point in the history
  • Loading branch information
lindlof committed Dec 9, 2020
1 parent b737def commit 3188c5e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/src/GamePlaying.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,13 @@ const GamePlaying = (props: Props) => {
</Paper>
</Grid>
</Grid>
<div className={classes.leave}>
<Button variant="contained" color="primary" onClick={() => leaveGame()}>
Leave game
</Button>
</div>
{game.stage === Game.Stage.Over && (
<div className={classes.leave}>
<Button variant="contained" color="primary" onClick={() => leaveGame()}>
Leave game
</Button>
</div>
)}
</div>
);
};
Expand Down

0 comments on commit 3188c5e

Please sign in to comment.