typo when not using /onecall - was getting forecast from wrong attr

This commit is contained in:
Nick Williams 2021-06-24 21:39:32 -04:00
parent e686611890
commit 775d1091db

View File

@ -54,7 +54,7 @@ WeatherProvider.register("openweathermap", {
this.setWeatherForecast(weatherData.days); this.setWeatherForecast(weatherData.days);
this.setFetchedLocation(`${data.timezone}`); this.setFetchedLocation(`${data.timezone}`);
} else { } else {
const forecast = this.generateWeatherObjectsFromForecast(data.daily); const forecast = this.generateWeatherObjectsFromForecast(data.list);
this.setWeatherForecast(forecast); this.setWeatherForecast(forecast);
this.setFetchedLocation(`${data.city.name}, ${data.city.country}`); this.setFetchedLocation(`${data.city.name}, ${data.city.country}`);
} }