From a02809ef25df8085e9b258936bfd1c161556f1f3 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Wed, 20 Aug 2025 22:40:35 +1000 Subject: [PATCH] Fix Show Deck showing the deck from a previous battle --- TableturfBattleClient/src/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TableturfBattleClient/src/app.ts b/TableturfBattleClient/src/app.ts index d56a6b3..2459599 100644 --- a/TableturfBattleClient/src/app.ts +++ b/TableturfBattleClient/src/app.ts @@ -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);