Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Jan 4, 2024
1 parent c8abfda commit 80eb9b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MMM-AirQuality.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ Module.register('MMM-AirQuality', {
switch (notification) {
case self.notifications.DATA_RESPONSE:
if (payload.identifier === this.identifier) {
if (payload.result.status === 'OK') {
console.log('Data %o', payload.result.payloadReturn)
self.render(payload.result.payloadReturn)
if (payload.status === 'OK') {
console.log('Data %o', payload.payloadReturn)
self.render(payload.payloadReturn)
self.updateDom(this.animationSpeed)
} else {
console.log('DATA FAILED ' + payload.result.message)
console.log('DATA FAILED ' + payload.message)
}
}
break
Expand Down

0 comments on commit 80eb9b6

Please sign in to comment.