summaryrefslogtreecommitdiff
path: root/scripts/gui/lobby.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-08-11 00:03:45 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-08-11 00:03:45 -0400
commitad911d6edd0fa76431284ef6283bb07da45d808d (patch)
tree77ea7c6f18b6b29a0e49b3050bfdc8ae41e6d2e6 /scripts/gui/lobby.js
parent32a50674868c48c34d35694009f3f1a59e3cf823 (diff)
A few small fixes
Diffstat (limited to 'scripts/gui/lobby.js')
-rw-r--r--scripts/gui/lobby.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gui/lobby.js b/scripts/gui/lobby.js
index a2771b7..c760f50 100644
--- a/scripts/gui/lobby.js
+++ b/scripts/gui/lobby.js
@@ -159,6 +159,9 @@ class Lobby {
}
for (let i of data.games) {
+ if(typeof i != "object")
+ continue;
+
if (this.games[i.id] == null) {
let g = new Game(i, this.e.games);
this.games[i.id] = g;