From 20bee1018c9cd516e50853041e1e653ce7d97c89 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Sun, 3 Aug 2025 23:47:32 +0200 Subject: [PATCH] fixed bug: Error handling when submitting form with wrong api key --- frontend/src/components/WeatherForm.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/components/WeatherForm.tsx b/frontend/src/components/WeatherForm.tsx index d4c3dcb..8267d56 100644 --- a/frontend/src/components/WeatherForm.tsx +++ b/frontend/src/components/WeatherForm.tsx @@ -23,8 +23,6 @@ const WeatherCard: React.FC = () => { .promise(fetchWeather(city, getAPIKey(), getUnit()), { pending: "Fetching weather data...", success: "Weather data loaded successfully!", - error: - "Failed to load weather data. Please check your entered city name. (Error: x4040)", }) .then(() => { if (localStorage.getItem("weather")) {