diff --git a/assets/js/components/notifications/service.js b/assets/js/components/notifications/service.js index cdb57653..5f4cbce8 100644 --- a/assets/js/components/notifications/service.js +++ b/assets/js/components/notifications/service.js @@ -48,10 +48,10 @@ ComunicWeb.components.notifications.service = { target_conversations.innerHTML = response.conversations; //If the number of notifications equals 0, hide the target if required - if(response.notifications == 0 && auto_hide) - target_conversations.style.display = "none"; + if(response.conversations == 0 && auto_hide) + target_conversations.style.display = "none"; else - target_conversations.style.display = "block"; + target_conversations.style.display = "block"; }