diff --git a/src/pages/homepage/Homepage.tsx b/src/pages/homepage/Homepage.tsx index f31c8ce..bd58b7d 100644 --- a/src/pages/homepage/Homepage.tsx +++ b/src/pages/homepage/Homepage.tsx @@ -159,8 +159,8 @@ export function Homepage() { (basicWeather.properties.minTemperature.values[0].value * 9) / 5 + 32, ), precipitation: - weather.features[0]?.properties.precipitationLastHour.value ?? 'N/A', - humidity: Math.round(weather.features[0]?.properties.relativeHumidity.value), + weather.features[0]?.properties?.precipitationLastHour?.value ?? 'N/A', + humidity: Math.round(weather.features[0]?.properties?.relativeHumidity?.value), heatIndex: basicWeather.properties.heatIndex?.values[0].value === null ? null