diff --git a/client/src/components/Auth/Authenticate.jsx b/client/src/components/Auth/Authenticate.jsx
index 38f2d6a..119dcb3 100644
--- a/client/src/components/Auth/Authenticate.jsx
+++ b/client/src/components/Auth/Authenticate.jsx
@@ -10,7 +10,7 @@ export default function Authenticate() {
if (parseUser?.role === "ADMIN") {
navigate("/admin");
} else if (parseUser?.role === "USER") {
- navigate("/");
+ navigate("/home");
}
}, [parseUser, navigate]);
return <>{!user ? : null}>;
diff --git a/client/src/routes/UserRoute.jsx b/client/src/routes/UserRoute.jsx
index ce22194..5dbc6de 100644
--- a/client/src/routes/UserRoute.jsx
+++ b/client/src/routes/UserRoute.jsx
@@ -2,6 +2,7 @@ import { lazy, Suspense } from "react";
import { Route, Routes } from "react-router";
import Loader from "../components/Loader/Loader1/Loader";
import Authenticate from "../components/Auth/Authenticate";
+import Protect from "../components/Auth/Protect";
const Home = lazy(() => import("../pages/UserPages/Home/Home"));
const Signup = lazy(() => import("../pages/UserPages/Signup/Signup"));
@@ -12,11 +13,14 @@ export default function UserRoute() {
<>
}>
- } />
}>
+ } />
} />
} />
+ }>
+ } />
+
>