From d54808d2298f1174d4495c6aa3f41ae609163bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Sat, 6 Feb 2021 21:18:35 +0100 Subject: [PATCH] Fix players rendering --- ui/html/game.page.tmpl.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/html/game.page.tmpl.html b/ui/html/game.page.tmpl.html index e40299d..ddff28e 100644 --- a/ui/html/game.page.tmpl.html +++ b/ui/html/game.page.tmpl.html @@ -57,7 +57,7 @@ const data = JSON.parse(e.data); console.log(data); //TODO remove debug - if ('players' in data) { + if ('players' in data && data.players !== null) { namesSection.innerHTML = ''; for (const player of data.players) { const nameClone = nameTemplate.content.cloneNode(true);