fix: change button type to submit in ChangeAPI component and update temperature unit logic in WeatherData component

This commit is contained in:
2025-08-01 20:25:03 +02:00
parent 97b5190442
commit 62094299d4
2 changed files with 4 additions and 2 deletions

View File

@@ -24,7 +24,9 @@ const WeatherData: React.FC = () => {
? "°C"
: localStorage.getItem("unit") === "imperial"
? "°F"
: "K"}
: localStorage.getItem("unit") === "standard"
? "K"
: "°C"}
</p>
<p className="flex items-center justify-center gap-2">
{weatherData?.sys?.country && (