always use day weather icons
All checks were successful
CI / build (push) Successful in 15s
CI / lint (push) Successful in 10s
CI / create-and-publish-docker-image (push) Successful in 14s

This commit is contained in:
2025-09-24 20:19:35 +02:00
parent 380e74bb2f
commit 29512969bc

View File

@@ -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 };