Skip to content

Commit

Permalink
Fix small bug on withdraw button
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Jan 14, 2024
1 parent dcc75d1 commit 7b95126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/components/tictactoe/TicTacToeBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const TicTacToeBoard: React.FC<TicTacToeBoardProps> = ({
<br />
{(gameState == 2 && currentPlayer == game.player1 && !player1WithdrawnPrize) ||
(gameState == 3 && currentPlayer == game.player2 && !player2WithdrawnPrize) ||
(gameState == 4 && currentPlayer == game.player1 && !player2WithdrawnPrize) ||
(gameState == 4 && currentPlayer == game.player1 && !player1WithdrawnPrize) ||
(gameState == 4 && currentPlayer == game.player2 && !player2WithdrawnPrize) ? (
<Button colorScheme={"green"} onClick={() => withdrawPrize()}>
Withdraw Prize
Expand Down

0 comments on commit 7b95126

Please sign in to comment.