From 85bc078c460bd786bcb82993c94e3de1acf741f8 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Fri, 9 Sep 2022 12:57:15 +0300 Subject: [PATCH] always attempt location fetch if it fails, then we just fallback to user interaction --- src/components/widgets/openweathermap/weather.jsx | 2 ++ src/components/widgets/weather/weather.jsx | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/widgets/openweathermap/weather.jsx b/src/components/widgets/openweathermap/weather.jsx index 13640b14c..b01eb3c4f 100644 --- a/src/components/widgets/openweathermap/weather.jsx +++ b/src/components/widgets/openweathermap/weather.jsx @@ -96,6 +96,8 @@ export default function OpenWeatherMap({ options }) { ); }; + if (!requesting && !location) requestLocation(); + if (!location) { return (