Skip to content

Commit

Permalink
#LobbyDesign
Browse files Browse the repository at this point in the history
- Fixed bug
  • Loading branch information
CheBato committed Dec 18, 2024
1 parent d46b2f7 commit 6bf7f5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const LeaderBaseCard: React.FC<ILeaderBaseCardProps> = ({
sx={isLobbyView ? cardStyleLobby : cardStyle}
onClick={() => {
// Only allow clicking if not lobby view and the card is selectable
if (!disabled) {
if (!disabled && card.selectable) {
sendGameMessage(["cardClicked", card.uuid]);
}
}}
Expand Down

0 comments on commit 6bf7f5a

Please sign in to comment.