From 2c2deb5691925e48f3179c3f0ab2b3129f0da178 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Fri, 14 Oct 2022 14:03:48 +1100 Subject: [PATCH] Fix no section showing up when joining a game with no name set --- TableturfBattleClient/index.html | 2 +- TableturfBattleClient/src/Pages/PreGamePage.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TableturfBattleClient/index.html b/TableturfBattleClient/index.html index 85357e3..a13865a 100644 --- a/TableturfBattleClient/index.html +++ b/TableturfBattleClient/index.html @@ -4,7 +4,7 @@ Tableturf Battle diff --git a/TableturfBattleClient/src/Pages/PreGamePage.ts b/TableturfBattleClient/src/Pages/PreGamePage.ts index 6e71243..2dc72b1 100644 --- a/TableturfBattleClient/src/Pages/PreGamePage.ts +++ b/TableturfBattleClient/src/Pages/PreGamePage.ts @@ -147,6 +147,8 @@ function presetGameID(url: string) { (document.getElementById('gameIDBox') as HTMLInputElement).value = url; if (playerName) tryJoinGame(playerName, url, true); + else + showSection('preGame'); } preGameDeckEditorButton.addEventListener('click', e => {