fixed navigation effect dependancy

This commit is contained in:
Dmitriy Shishkov 2023-05-17 11:40:20 +03:00
parent ca6c913787
commit c2ee2f5b02
Signed by: dm1sh
GPG Key ID: 027994B0AA357688

View File

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