fix: prefer hybrid cloud cover in hero

This commit is contained in:
zv
2026-06-14 11:05:04 +02:00
parent a9b0c65527
commit 2d424655e5
2 changed files with 28 additions and 2 deletions

View File

@@ -80,7 +80,14 @@ export function WeatherHero({ station, currentWeather, currentWeatherLoading = f
: devEffectOverride === "rain" || devEffectOverride === "none"
? false
: currentWeather?.condition === "thunderstorm";
const weatherDescription = getWeatherDescription(displayedStation, language, currentWeather?.condition, currentForecastWeatherCode);
const weatherDescription = getWeatherDescription(
displayedStation,
language,
currentWeather?.condition,
currentWeather?.weatherCode,
currentWeather?.cloudCover,
currentForecastWeatherCode,
);
useEffect(() => {
if (process.env.NODE_ENV !== "development") return;