Skip to content

Commit

Permalink
fix: cannot play cards whilst judging
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Jul 28, 2024
1 parent 0e24c20 commit 7fea92f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cahfrontend/src/components/gameControls/GameLobby.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,16 @@ export function GameLobbyLoaded(props: Readonly<LobbyLoadedProps>) {
pack: "Your hand",
};
})}
selectedCardIds={props.roundState.yourPlays.map((x) =>
x.id.toString(),
)}
selectedCardIds={
isCzarJudgingPhase()
? []
: props.roundState.yourPlays.map((x) => x.id.toString())
}
onSelectCard={(id) => {
if (isCzarJudgingPhase()) {
return;
}

if (
props.roundState.yourPlays
.map((x) => x.id.toString())
Expand Down

0 comments on commit 7fea92f

Please sign in to comment.