From 753199febb41890b6de945c67f7667d3201ed955 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 30 Nov 2021 16:57:53 +0100 Subject: [PATCH] refactor --- InvenTree/InvenTree/static/script/inventree/notification.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/static/script/inventree/notification.js b/InvenTree/InvenTree/static/script/inventree/notification.js index bb40fa3850..cca807b81c 100644 --- a/InvenTree/InvenTree/static/script/inventree/notification.js +++ b/InvenTree/InvenTree/static/script/inventree/notification.js @@ -141,13 +141,13 @@ function showMessage(message, options={}) { } } -function updateNotificationIndicator(counter) { - if (counter == 0) { +function updateNotificationIndicator(count) { + if (count == 0) { $("#notification-alert").addClass("d-none"); } else { $("#notification-alert").removeClass("d-none"); } - $("#notification-counter").html(counter); + $("#notification-counter").html(count); }