diff --git a/1114/app/routes/weather.tsx b/1114/app/routes/weather.tsx index 1c2c8c6..22b5a52 100644 --- a/1114/app/routes/weather.tsx +++ b/1114/app/routes/weather.tsx @@ -15,7 +15,7 @@ export function meta() { } export default function Weather() { - const { currentWeather, isLoading, error, setError } = useWeatherStore() + const { currentWeather, isLoading, error, setError } = useWeatherStore() useEffect(() => { if (error) { @@ -24,7 +24,7 @@ export default function Weather() { setError("") } }, [error, setError]) - }, [error, setError]) + return (