Weather bugfix
All checks were successful
Deploy to production / build (push) Successful in 29s

This commit is contained in:
Sean Edmunds
2026-03-23 09:20:27 -05:00
parent f7a71ae0cf
commit 5b17851008
3 changed files with 158 additions and 168 deletions

View File

@@ -148,7 +148,7 @@ export function Homepage() {
icon: weather.features[0]?.properties.icon?.replace('medium', 'large') ?? '',
textDescription: weather.features[0]?.properties.textDescription,
temperature: Math.round(
(weather.features.find((feature: any) => feature.properties.temperature.value)
(weather.features?.find((feature: any) => feature.properties.temperature.value)
.properties.temperature.value *
9) /
5 +