From 6e0247031d49e49d21c662e234c0c68614985dc1 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Thu, 6 Oct 2022 11:54:28 +1100 Subject: [PATCH] Don't auto join a game on app load if saved nickname is empty --- TableturfBattleClient/src/Pages/PreGamePage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableturfBattleClient/src/Pages/PreGamePage.ts b/TableturfBattleClient/src/Pages/PreGamePage.ts index bfe45fb..d7261c6 100644 --- a/TableturfBattleClient/src/Pages/PreGamePage.ts +++ b/TableturfBattleClient/src/Pages/PreGamePage.ts @@ -227,6 +227,6 @@ if (window.location.hash != '') { document.getElementById('preGameDefaultSection')!.hidden = true; document.getElementById('preGameJoinSection')!.hidden = false; (document.getElementById('gameIDBox') as HTMLInputElement).value = window.location.hash; - if (playerName != null) + if (playerName) tryJoinGame(playerName, window.location.hash, true); }