[F.END] Corrected typo on comparison
This commit is contained in:
parent
28055ac06f
commit
bb04543424
|
@ -39,12 +39,11 @@ function zerocalcareDisplay() {
|
||||||
timeText.appendChild(document.createTextNode(timeString));
|
timeText.appendChild(document.createTextNode(timeString));
|
||||||
timeElement.appendChild(document.createTextNode('⏰ '));
|
timeElement.appendChild(document.createTextNode('⏰ '));
|
||||||
timeElement.appendChild(timeText);
|
timeElement.appendChild(timeText);
|
||||||
|
|
||||||
|
|
||||||
// add if location is not empty -- default location should be selected by backend
|
// add if location is not empty -- default location should be selected by backend
|
||||||
var locationElement = document.createElement('div');
|
var locationElement = document.createElement('div');
|
||||||
var locationText = document.createElement('span');
|
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']));
|
locationText.appendChild(document.createTextNode(json_obj[i]['LOCATION']));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue