mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-03-21 17:34:28 -05:00
Fix Show Deck showing the deck from a previous battle
This commit is contained in:
parent
260b1425bd
commit
a02809ef25
|
|
@ -155,12 +155,14 @@ function onGameStateChange(game: any, playerData: PlayerData | null) {
|
|||
case GameState.ChoosingStage:
|
||||
initLobbyPage(window.location.toString());
|
||||
showPage('lobby');
|
||||
clearShowDeck();
|
||||
clearConfirmLeavingGame();
|
||||
showStageSelectionForm(playerData?.stageSelectionPrompt ?? null, playerData && game.players[playerData.playerIndex]?.isReady);
|
||||
lobbySelectedStageSection.hidden = true;
|
||||
break;
|
||||
case GameState.ChoosingDeck:
|
||||
showPage('lobby');
|
||||
clearShowDeck();
|
||||
if (currentGame.me) setConfirmLeavingGame();
|
||||
if (selectedStageIndicator)
|
||||
lobbySelectedStageSection.removeChild(selectedStageIndicator.buttonElement);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user