Skip to content

Commit 254469d

Browse files
committed
fix: use lobbyConfig.playerName instead of undefined lobby variable
1 parent 762ac48 commit 254469d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/ClientGameRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function joinLobby(
7979
// Expose current clientID for UI alignment decisions
8080
(window as any).__clientID = lobbyConfig.clientID;
8181
// Expose username for message identification
82-
(window as any).__username = lobby.playerName;
82+
(window as any).__username = lobbyConfig.playerName;
8383
// Notify components that the EventBus is ready
8484
document.dispatchEvent(
8585
new CustomEvent("event-bus:ready", { bubbles: true, composed: true }),

0 commit comments

Comments
 (0)