diff --git a/src/pages/homepage/Homepage.tsx b/src/pages/homepage/Homepage.tsx index 280067a..3eee5bf 100644 --- a/src/pages/homepage/Homepage.tsx +++ b/src/pages/homepage/Homepage.tsx @@ -104,9 +104,10 @@ export default function Homepage({ theme }: any) { precipitation: weather.features[0].properties.precipitationLastHour.value || 'N/A', humidity: Math.round(weather.features[0].properties.relativeHumidity.value), - heatIndex: Math.round(weather.features[0].properties.heatIndex.value !== null ? - (weather.features[0].properties.heatIndex.value * 9) / 5 + 32 - : (weather.features[0].properties.temperature.value * 9) / 5 + 32, + heatIndex: Math.round( + weather.features[0].properties.heatIndex.value !== null + ? (weather.features[0].properties.heatIndex.value * 9) / 5 + 32 + : (weather.features[0].properties.temperature.value * 9) / 5 + 32, ), windSpeed: Math.round(weather.features[0].properties.windSpeed.value / 1.60934), windDirection: weather.features[0].properties.windDirection.value, diff --git a/src/pages/homepage/components/HourlyCard.tsx b/src/pages/homepage/components/HourlyCard.tsx index b2cc1aa..24ec9b6 100644 --- a/src/pages/homepage/components/HourlyCard.tsx +++ b/src/pages/homepage/components/HourlyCard.tsx @@ -12,7 +12,7 @@ export enum WindDirection { NW = 315, } -export default function HourlyCard({ weather }: any) {; +export default function HourlyCard({ weather }: any) { return ( - - {`${weather.probabilityOfPrecipitation.value*10}`}% + + + {`${weather.probabilityOfPrecipitation.value * 10}`}% + ); diff --git a/src/pages/homepage/components/SmallWeatherCard.tsx b/src/pages/homepage/components/SmallWeatherCard.tsx index aeea453..10f16df 100644 --- a/src/pages/homepage/components/SmallWeatherCard.tsx +++ b/src/pages/homepage/components/SmallWeatherCard.tsx @@ -46,7 +46,7 @@ export default function SmallWeatherCard({ weather }: any) { {weather.temperature}°F - Feels like: {weather.heatIndex} °F + Feels like: {weather.heatIndex}°F Humidity: {weather.humidity}%