From 6158ea85b55ff73e1a44e6589cca18cf831a08bf Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Mon, 4 Sep 2023 20:49:55 -0400 Subject: [PATCH] Appease sonar --- app/frontend/templates/notify.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/frontend/templates/notify.html b/app/frontend/templates/notify.html index 5f917e5e..1f73f15b 100644 --- a/app/frontend/templates/notify.html +++ b/app/frontend/templates/notify.html @@ -98,7 +98,7 @@ function updateAnnouncements(data) { console.log(data) let text = ""; - for (i = 0; i < data.length; i++) { + for (let i = 0; i < data.length; i++) { text += `
  • ${data[i].title}

    ${data[i].date}

    ${data[i].desc}

  • ` } if (data.length > 0) { @@ -114,7 +114,7 @@ let uuid = event.target.getAttribute("data-id"); $(`#${uuid}`).remove(); send_clear(uuid); - notif_count = localStorage.getItem("notif-count") - 1; + let notif_count = localStorage.getItem("notif-count") - 1; if (notif_count > 0) { localStorage.setItem("notif-count", notif_count); $("#notif-count").html(notif_count);