fix: update error response status and improve success message handling in weather fetching
This commit is contained in:
@@ -21,6 +21,7 @@ export const fetchWeather = async (city: string, units: string) => {
|
||||
return;
|
||||
}
|
||||
localStorage.setItem("weather", JSON.stringify(responseData.data));
|
||||
myToast(responseData.success, "success");
|
||||
return;
|
||||
} catch (error) {
|
||||
const errorMsg = JSON.stringify(error);
|
||||
|
||||
Reference in New Issue
Block a user