From 5a6b29c7407473a066165d0b96edd805902389df Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Dec 2021 13:22:25 +0100 Subject: Fix roles in random games! --- public/join.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') diff --git a/public/join.js b/public/join.js index 6828ca6..24e10ab 100644 --- a/public/join.js +++ b/public/join.js @@ -88,7 +88,7 @@ function update() { for (let i = 0; i < roles.length; ++i) { let role = roles[i]; let role_id = "role_" + role.replace(/ /g, "_"); - if (game.random && game.status === 0) + if (game.is_random && game.status === 0) role = "Random " + (i+1); document.getElementById(role_id + "_name").textContent = role; let player = players.find(p => p.role === role); -- cgit v1.2.3