[F.END] Patch: removed typeof where was not necessary

This commit is contained in:
giuliof 2020-09-20 22:52:05 +02:00
parent d7db0952d3
commit 127ffdc7b9
1 changed files with 1 additions and 1 deletions

View File

@ -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 {