mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2025-09-03 18:48:38 +02:00
fix(frontend): make sure player is active before updating card
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
canPlayCards={false}
|
||||
canUpdateCards={true}
|
||||
updateCard={(_, data) => {
|
||||
sessionStore.updatePlayedCard(data);
|
||||
if (get(playerActive)) sessionStore.updatePlayedCard(data);
|
||||
}}
|
||||
cards={[{ Card: undefined, PlayedBy: "", CardIndex: -1 }, ...$sessionStore.playedCards]}
|
||||
centerDistancePx={0}
|
||||
|
Reference in New Issue
Block a user