always use day weather icons
This commit is contained in:
@@ -366,10 +366,9 @@ const useWeatherStore = create(
|
||||
},
|
||||
};
|
||||
|
||||
const isDay = weatherData.current.is_day === 1;
|
||||
// const isDay = weatherData.current.is_day === 1;
|
||||
const weatherCode = weatherData.current.weather_code;
|
||||
const url =
|
||||
iconNumberToPng[weatherCode][isDay ? "day" : "night"].image;
|
||||
const url = iconNumberToPng[weatherCode].day.image;
|
||||
|
||||
weatherData.current = { ...weatherData.current, icon: url };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user