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 {