mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-20 01:51:51 -05:00
Fix Show Deck showing the deck from a previous battle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user