summaryrefslogtreecommitdiffstats
path: root/web/play/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/play/src/main.ts')
-rw-r--r--web/play/src/main.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/play/src/main.ts b/web/play/src/main.ts
index 2dd3ce9..15eecf5 100644
--- a/web/play/src/main.ts
+++ b/web/play/src/main.ts
@@ -19,6 +19,7 @@ const gameBoard = byId("game-board");
19const gameSide = byId("game-side"); 19const gameSide = byId("game-side");
20const gameTitle = byId("game-title"); 20const gameTitle = byId("game-title");
21const gameBadge = byId("game-badge"); 21const gameBadge = byId("game-badge");
22const lobbyAccount = byId("lobby-account");
22const historyBody = byId("history-body"); 23const historyBody = byId("history-body");
23const authForm = byId<HTMLFormElement>("auth-form"); 24const authForm = byId<HTMLFormElement>("auth-form");
24const authUser = byId<HTMLInputElement>("auth-user"); 25const authUser = byId<HTMLInputElement>("auth-user");
@@ -226,6 +227,7 @@ function badge(view: View): string {
226} 227}
227 228
228function renderLobby(lobby: View): void { 229function renderLobby(lobby: View): void {
230 lobbyAccount.textContent = lobby.account ? `Account ${lobby.account}` : "";
229 gameGrid.replaceChildren(); 231 gameGrid.replaceChildren();
230 const list: [string, string][] = lobby.games ?? []; 232 const list: [string, string][] = lobby.games ?? [];
231 for (const [id, name] of list) { 233 for (const [id, name] of list) {