mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 23:08:48 +00:00
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.
This commit is contained in:
parent
f48ff3cd61
commit
280bd0e621
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ function Widget({ options }) {
|
||||||
<div className="hidden sm:flex flex-col items-center">
|
<div className="hidden sm:flex flex-col items-center">
|
||||||
<Icon
|
<Icon
|
||||||
condition={data.weather[0].id}
|
condition={data.weather[0].id}
|
||||||
timeOfDay={data.dt > data.sys.sunrise && data.dt < data.sys.sundown ? "day" : "night"}
|
timeOfDay={data.dt > data.sys.sunrise && data.dt < data.sys.sunset ? "day" : "night"}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col ml-3 text-left">
|
<div className="flex flex-col ml-3 text-left">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue