We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a7ff2 commit 58c00a1Copy full SHA for 58c00a1
1 file changed
src/class/QWeather.mjs
@@ -889,7 +889,7 @@ export default class QWeather {
889
}
890
891
// Some locationID at Hong Kong and Macau with length 9 is supported
892
- if (locationInfo.iso === "TW" || locationInfo.id.length !== 9) {
+ if (!locationInfo || locationInfo.iso === "TW" || locationInfo.id.length !== 9) {
893
Console.error("YesterdayAirQuality", "Unsupported location");
894
return failedAirQuality;
895
0 commit comments