Remove counts when notifications are deleted

This commit is contained in:
Mouse Reeve 2021-01-19 14:32:08 -08:00
parent 3fce67a60d
commit 94a41498cf

View file

@ -48,8 +48,8 @@ function polling(el) {
function updateCountElement(el, data) {
const currentCount = el.innerHTML;
const count = data[el.getAttribute('data-poll')];
if (count && count != currentCount) {
removeClass(el, 'hidden');
if (count != currentCount) {
addRemoveClass(el, 'hidden', count < 1);
el.innerHTML = count;
}
}