From 39d2fccf893786ea7d6c6971b926ac3a770a03c8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 23 Jul 2024 16:39:11 +0200 Subject: don't show time left on finished 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 f852b95..8f0ea8a 100644 --- a/public/join.js +++ b/public/join.js @@ -390,7 +390,7 @@ function create_player_box(role, player) { if (player.is_invite) box.classList = "invite" - if (game.status > 0 && (game.pace > 0 || player.time_left < 3)) + if (game.status === 1 && (game.pace > 0 || player.time_left < 3)) td_role_time.textContent = format_time_left(player.time_left) td_player_name.innerHTML = player_link(player) -- cgit v1.2.3