You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it's a bug, I think it's returning all the items in the alerts node in the api call. If there is more than one being returned by the API, then it'll display them both. It looks like an array, you could check the various tags associated with the call (described here: https://openweathermap.org/api/one-call-api) and determine which ones you want to display.
This happens because the OpenWeather API returns two weather alerts. This first alert lasts from 13th December 00:00 to 13th December 23:59 and the second one from 14th December 00:00 to 14th December 23:59. They are basically the same but they return a new alert for each day.
I don't know a good solution to solve this problem
For some reason, some of the weather alerts are shown twice.
I cannot tell tho if they come twice from the BE service used to display them.
The text was updated successfully, but these errors were encountered: