fixing compile time error

This commit is contained in:
todd
2021-10-06 14:27:26 -07:00
parent 52c9f96c55
commit c25a2961ba

View File

@@ -236,7 +236,7 @@ export default class OWMWeatherProvider extends WeatherProvider {
dt_txt: "" dt_txt: ""
}; };
if (hourly && hourly.length > 0 && hourly[2]?.dt) { if (hourly && hourly.length > 2 && hourly[2].dt) {
// Could add some more data here if needed, I decided to just minimize the translation work // Could add some more data here if needed, I decided to just minimize the translation work
// Also some of the fields aren't availible in the new call so not worth trying to do a full translation // Also some of the fields aren't availible in the new call so not worth trying to do a full translation