Units & Preferences
10 min read
Convert Wind Speed
Task
Keep wind speed readable in both systems.
File / section
src/components/WeatherStats.jsx
Change
Use unit === "metric" ? weather.wind.speed * 3.6 : weather.wind.speed, then label metric as km/h and imperial as mph.
Why this change matters
The metric API wind value is meters per second; the dashboard converts it to km/h for readability.
Test it
Switch units and verify the wind number and label change.
Checkpoint
Wind speed follows the selected unit.