From 506bca37b6a7c2db2cb121f9395fa15f62344577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 14 Oct 2023 20:00:47 +0200 Subject: [PATCH] Do not assume update if remote hash is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/footer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index 26e3b19a2..c6c77a289 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -522,7 +522,7 @@ function updateVersionInfo() { } else { // non-master branch localVersion = "vDev (" + v.branch + ", " + v.hash + ")"; - if (v.hash !== v.hash_remote) { + if (v.hash_remote !== null && v.hash !== v.hash_remote) { // hash differ > Update available updateComponentAvailable = true; // link to the commit history instead of release page