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