From bb04543424d93d61929c27f733ae857052661dea Mon Sep 17 00:00:00 2001 From: giuliof Date: Sun, 20 Sep 2020 22:29:55 +0200 Subject: [PATCH] [F.END] Corrected typo on comparison --- frontend/frontend.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index 450641f..ad413e6 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -39,12 +39,11 @@ function zerocalcareDisplay() { timeText.appendChild(document.createTextNode(timeString)); timeElement.appendChild(document.createTextNode('⏰ ')); timeElement.appendChild(timeText); - // add if location is not empty -- default location should be selected by backend var locationElement = document.createElement('div'); var locationText = document.createElement('span'); - if (typeof json_obj[i]['LOCATION'] !== 'undefined' && json_obj[i]['LOCATION'] != '') { + if (typeof json_obj[i]['LOCATION'] !== undefined && json_obj[i]['LOCATION'] != '') { locationText.appendChild(document.createTextNode(json_obj[i]['LOCATION'])); } else {