From dcf3c429246b31322d337eca67bec6110456aed2 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 17 May 2020 11:46:50 +0100 Subject: [PATCH] flip null check on `elName`. `=== null` was not working Signed-off-by: Adam Warner --- scripts/pi-hole/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 995a3c33..a6a383dc 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -788,7 +788,7 @@ function updateSummaryData(runOnce) { var apiElName = arrayItem.split("|"); var apiName = apiElName[0]; var elName = apiElName[1]; - var $todayElement = elName === null ? $("span#" + apiName) : $("span#" + elName); + var $todayElement = elName ? $("span#" + elName) : $("span#" + apiName); var textData = idx === 2 && data[apiName] !== "to" ? data[apiName] + "%" : data[apiName]; if ($todayElement.text() !== textData && $todayElement.text() !== textData + "%") { $todayElement.addClass("glow");