fixed navigation effect dependancy

This commit is contained in:
2023-05-17 11:40:20 +03:00
parent ca6c913787
commit c2ee2f5b02

View File

@ -9,7 +9,7 @@ function WithToken({ children }) {
if (!getToken()) {
return navigate("/login")
}
}, [])
}, [navigate])
return (
<>{children}</>