summaryrefslogtreecommitdiffstats
path: root/web/play/src
diff options
context:
space:
mode:
Diffstat (limited to 'web/play/src')
-rw-r--r--web/play/src/main.ts2
-rw-r--r--web/play/src/slots.ts1
2 files changed, 3 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) {
diff --git a/web/play/src/slots.ts b/web/play/src/slots.ts
index 7c4677d..8b821cf 100644
--- a/web/play/src/slots.ts
+++ b/web/play/src/slots.ts
@@ -39,6 +39,7 @@ export function renderSlots(
39): void { 39): void {
40 latest = view; 40 latest = view;
41 latestBoard = board; 41 latestBoard = board;
42 if (view.error) spinUntil = 0;
42 if (animation !== undefined) { 43 if (animation !== undefined) {
43 window.clearInterval(animation); 44 window.clearInterval(animation);
44 animation = undefined; 45 animation = undefined;