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