mirror of
https://github.com/HexCardGames/HexDeck.git
synced 2026-10-14 00:07:53 +02:00
fix(frontend): make sure player is active before updating card
This commit is contained in:
1 parent
4b13b9fc95
commit
a54eb51e9a
1 file changed
+1
-1
@@ -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