From 0360efc147ef87151cee8ab99b7251dc047acf15 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 31 Mar 2022 22:46:47 +0400 Subject: [PATCH] If there was no listeners on a track, then print nothing. --- internal/handlers/web/assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/web/assets/js/main.js b/internal/handlers/web/assets/js/main.js index 7ce6a33..52b2805 100644 --- a/internal/handlers/web/assets/js/main.js +++ b/internal/handlers/web/assets/js/main.js @@ -32,7 +32,7 @@ function updateLastPlayedSong() { let start_time = row.insertCell(); start_time.appendChild(document.createTextNode(last_played.time)); let listeners_cell = row.insertCell(); - listeners_cell.appendChild(document.createTextNode(last_played.listeners)); + listeners_cell.appendChild(document.createTextNode(last_played.listeners == 0 ? "" : last_played.listeners)); let song_cell = row.insertCell(); song_cell.appendChild(document.createTextNode(last_played.song)); });