Don't auto join a game on app load if saved nickname is empty

This commit is contained in:
Andrio Celos
2022-10-06 11:54:28 +11:00
parent 91cacaf132
commit 6e0247031d

View File

@@ -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);
}