From 127ffdc7b9e225ba6d0b772bfa8306776e84b5b3 Mon Sep 17 00:00:00 2001 From: giuliof Date: Sun, 20 Sep 2020 22:52:05 +0200 Subject: [PATCH] [F.END] Patch: removed typeof where was not necessary --- frontend/frontend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index 2e95df2..8634447 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -75,7 +75,7 @@ function zerocalcareDisplay() { // 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 (json_obj[i]['LOCATION'] !== undefined && json_obj[i]['LOCATION'] != '') { locationText.appendChild(document.createTextNode(json_obj[i]['LOCATION'])); } else {