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