diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-07-23 16:39:11 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-07-23 16:39:11 +0200 |
commit | 39d2fccf893786ea7d6c6971b926ac3a770a03c8 (patch) | |
tree | b78255a6234b3ca21e82b66e3b8852517b1fce30 /public | |
parent | 34487c1b1920c6a52108a7ed7b390d4b08728ff9 (diff) | |
download | server-39d2fccf893786ea7d6c6971b926ac3a770a03c8.tar.gz |
don't show time left on finished games
Diffstat (limited to 'public')
-rw-r--r-- | public/join.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |