[F.END] Corrected typo on comparison

This commit is contained in:
giuliof 2020-09-20 22:29:55 +02:00
parent 28055ac06f
commit bb04543424
1 changed files with 1 additions and 2 deletions

View File

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