Commit 0ce35a25 by Arjun Jhukal

updated the minor change

parent 926a155a
...@@ -43,6 +43,7 @@ export default function Private({ children }: { children: React.ReactNode }) { ...@@ -43,6 +43,7 @@ export default function Private({ children }: { children: React.ReactNode }) {
// if (!user) { // if (!user) {
// router.replace("/"); // router.replace("/");
// } // }
}, [token, user, dispatch, router]); }, [token, user, dispatch, router]);
if (!user) return null; if (!user) return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment