From 2ff00fed718a6e51268e0355f8a68e264753e05a Mon Sep 17 00:00:00 2001 From: Sir Blob <76974209+GamerBoss101@users.noreply.github.com> Date: Sun, 26 Jan 2025 03:07:45 -0500 Subject: [PATCH] log data --- src/app/(panels)/suite/layout.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/(panels)/suite/layout.jsx b/src/app/(panels)/suite/layout.jsx index c0a56b1..29948bc 100644 --- a/src/app/(panels)/suite/layout.jsx +++ b/src/app/(panels)/suite/layout.jsx @@ -22,9 +22,11 @@ export default function RootLayout({ }, [user]); if (userData) { + console.log(userData); if (userData.role === "caregiver" && router.pathname.startsWith("/suite/patient/")) { router.push("/suite/doctor/dashboard"); } + if (userData.role === "patient" && router.pathname.startsWith("/suite/doctor/")) { router.push("/suite/patient/dashboard"); }