+ {localWeather?.data && (() => {
+ const t = localWeather.data.temp;
+ const unit = localWeather.data.tempUnit || 'F';
+ const tempF = unit === 'C' ? Math.round(t * 9/5 + 32) : t;
+ const tempC = unit === 'F' ? Math.round((t - 32) * 5/9) : t;
+ const windLabel = localWeather.data.windUnit || 'mph';
+ return (
+
{localWeather.data.icon}
- {localWeather.data.temp}°F/{Math.round((localWeather.data.temp - 32) * 5/9)}°C
+ {tempF}°F/{tempC}°C
- )}
+ );
+ })()}
SFI
{spaceWeather?.data?.solarFlux || '--'}