diff --git a/static/js/live.js b/static/js/live.js index 4394a0d..319af8a 100644 --- a/static/js/live.js +++ b/static/js/live.js @@ -212,8 +212,10 @@ socket.on('user_left', function(data) { }); socket.on('user_list', function(data) { - const userList = data.users.join(', '); - showToast(`Obecni: ${userList}`, 'info'); + if (data.users.length > 0) { + const userList = data.users.join(', '); + showToast(`Obecni: ${userList}`, 'info'); + } }); socket.on('full_list', function(data) {