fixed navigation effect dependancy
This commit is contained in:
parent
ca6c913787
commit
c2ee2f5b02
@ -9,7 +9,7 @@ function WithToken({ children }) {
|
|||||||
if (!getToken()) {
|
if (!getToken()) {
|
||||||
return navigate("/login")
|
return navigate("/login")
|
||||||
}
|
}
|
||||||
}, [])
|
}, [navigate])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>{children}</>
|
<>{children}</>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user