Skip to content

Commit

Permalink
Remove 'null' from lobby when the user is not logged in
Browse files Browse the repository at this point in the history
The inline javascript is trying to append an element that only exists
when the user is logged in, resulting in viewing "null" instead when
they are not logged in. Moreover, when the window size changes, a series
of nulls are rendered.
  • Loading branch information
FawzyAshraf committed Dec 11, 2024
1 parent f0cd00a commit e379d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/lobby/src/lobby.inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function layout() {
cols = newCols;
document
.querySelector<HTMLElement>(cols > 2 ? '.lobby__side' : '.lobby')
?.append(document.querySelector('.lobby__timeline')!);
?.append(document.querySelector('.lobby__timeline') ?? '');
}

layout();
Expand Down

0 comments on commit e379d69

Please sign in to comment.