From 2e6585bd92da343db6cd92d5c8d485b80d71b445 Mon Sep 17 00:00:00 2001 From: Ko71k Date: Mon, 16 Dec 2024 14:47:07 +0300 Subject: [PATCH] === --- public/src/components/Header/Header.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/components/Header/Header.js b/public/src/components/Header/Header.js index 8afb28d..84fd4ed 100644 --- a/public/src/components/Header/Header.js +++ b/public/src/components/Header/Header.js @@ -219,11 +219,13 @@ export class Header { } const notifications = await response.json(); + console.log(notifications); + console.log(notifications.length); const message = 'Вас пригласили на мероприятие.' container.innerHTML = ''; // Очищаем контейнер - if (notifications.length === 0) { + if (notifications.length == 0) { const emptyMessage = document.createElement('div'); emptyMessage.className = 'notification-item'; emptyMessage.textContent = 'Нет уведомлений';