From 4c91c1842fc3b3fcf00fb7cf8504c1e18e49b65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Wed, 9 Jul 2025 16:48:40 +0200 Subject: [PATCH] fixy w js --- static/js/live.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {