code cleanup

This commit is contained in:
Matt Walsh
2022-12-14 13:08:49 -06:00
parent 49296e53f0
commit 2a577aaea7
4 changed files with 18 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ class CurrentWeather extends WeatherDisplay {
// test for data received
if (!observations) {
console.error('All current weather stations exhausted');
if (this.enabled) this.setStatus(STATUS.failed);
if (this.isEnabled) this.setStatus(STATUS.failed);
// send failed to subscribers
this.getDataCallback(undefined);
return;