Skip to content

Commit

Permalink
Display Select action instead of Roll if playing dev cards before rol…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
zarns committed Nov 3, 2024
1 parent 63cbaa2 commit cb4b99c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/pages/ActionsToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,22 +227,22 @@ function PlayButtons() {
color="primary"
startIcon={<NavigateNextIcon />}
onClick={
isRoll
? rollAction
: isDiscard
isDiscard
? proceedAction
: isMoveRobber
? setIsMovingRobber
: isPlayingYearOfPlenty || isPlayingMonopoly
? handleOpenResourceSelector
: isRoll
? rollAction
: endTurnAction
}
>
{
isRoll ? "ROLL" :
isDiscard ? "DISCARD" :
isMoveRobber ? "ROB" :
isPlayingYearOfPlenty || isPlayingMonopoly ? "SELECT" :
isRoll ? "ROLL" :
"END"
}
</Button>
Expand Down

0 comments on commit cb4b99c

Please sign in to comment.