fix: Restore myBetPlaced variable that was incorrectly removed
Some checks failed
Deploy to Production / test (push) Failing after 34s
Some checks failed
Deploy to Production / test (push) Failing after 34s
- Re-added myBetPlaced variable which is used for betting phase UI rendering
This commit is contained in:
@@ -398,6 +398,7 @@ export function BlackjackGame({ state, myPlayerId, isSpectator, onAction, player
|
|||||||
}, [players]);
|
}, [players]);
|
||||||
|
|
||||||
const mySeat = view.seats[myPlayerId];
|
const mySeat = view.seats[myPlayerId];
|
||||||
|
const myBetPlaced = mySeat?.hasBet ?? false;
|
||||||
|
|
||||||
// Determine who can sit (spectators during betting phase)
|
// Determine who can sit (spectators during betting phase)
|
||||||
const canSitDown = isSpectator && isBetting && view.turnOrder.length < 6;
|
const canSitDown = isSpectator && isBetting && view.turnOrder.length < 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user