Fix players rendering

This commit is contained in:
Vojtěch Káně
2021-02-06 21:18:35 +01:00
parent fdc080a250
commit d54808d229

View File

@@ -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);