From 280bd0e621d245927280939934c4c051a4ee4f30 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 9 Nov 2022 15:21:29 +0800 Subject: [PATCH] Fix: openweathermap day/night icon issue The day/night icon does not display properly in openwathermap widget due to the typo (sundown -> sunset) in parsing data from openweathermap api. The icon should be displayed properly after the fix. --- src/components/widgets/openweathermap/weather.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/openweathermap/weather.jsx b/src/components/widgets/openweathermap/weather.jsx index 6a1f2a16d..49f428a04 100644 --- a/src/components/widgets/openweathermap/weather.jsx +++ b/src/components/widgets/openweathermap/weather.jsx @@ -54,7 +54,7 @@ function Widget({ options }) {
data.sys.sunrise && data.dt < data.sys.sundown ? "day" : "night"} + timeOfDay={data.dt > data.sys.sunrise && data.dt < data.sys.sunset ? "day" : "night"} />