1
0

If there was no listeners on a track, then print nothing.

This commit is contained in:
Alexander Andreev 2022-03-31 22:46:47 +04:00
parent ee10fc1c9e
commit 0360efc147
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

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