Email: example@gmail.com
Password: 123456
From this:
useEffect(() => {
!access && navigate("/");
/* !access && navigate("/home") */
if (path !== "/" && path !== "/home" && path !== "about") {
navigate("/notFound");
}
}, [access]);
To this:
useEffect(() => {
/* !access && navigate("/") */
!access && navigate("/home");
if (path !== "/" && path !== "/home" && path !== "about") {
navigate("/notFound");
}
}, [access]);