This commit is contained in:
parent
817f57bc33
commit
d7be705d20
|
|
@ -15,7 +15,7 @@ export function meta() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Weather() {
|
export default function Weather() {
|
||||||
const { currentWeather, isLoading, error, setError } = useWeatherStore()
|
|
||||||
const { currentWeather, isLoading, error, setError } = useWeatherStore()
|
const { currentWeather, isLoading, error, setError } = useWeatherStore()
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
@ -24,7 +24,7 @@ export default function Weather() {
|
||||||
setError("")
|
setError("")
|
||||||
}
|
}
|
||||||
}, [error, setError])
|
}, [error, setError])
|
||||||
}, [error, setError])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center justify-center h-screen">
|
<div className="flex flex-col items-center justify-center h-screen">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue