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 weatherCode = weatherData.current.weather_code;
|
||||||
const url =
|
const url = iconNumberToPng[weatherCode].day.image;
|
||||||
iconNumberToPng[weatherCode][isDay ? "day" : "night"].image;
|
|
||||||
|
|
||||||
weatherData.current = { ...weatherData.current, icon: url };
|
weatherData.current = { ...weatherData.current, icon: url };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user