From f0eb7a49a53d8b424d875f1fd07f3dd470047140 Mon Sep 17 00:00:00 2001 From: Sir Blob <76974209+GamerBoss101@users.noreply.github.com> Date: Sun, 26 Jan 2025 03:54:47 -0500 Subject: [PATCH] agianaina gain --- src/app/(panels)/suite/doctor/account/page.jsx | 2 +- src/app/(panels)/suite/doctor/dashboard/page.jsx | 2 +- src/app/(panels)/suite/patient/account/page.jsx | 2 +- src/app/(panels)/suite/patient/chat/page.jsx | 2 +- src/app/(panels)/suite/patient/dashboard/page.jsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/(panels)/suite/doctor/account/page.jsx b/src/app/(panels)/suite/doctor/account/page.jsx index 40debd1..01cb049 100644 --- a/src/app/(panels)/suite/doctor/account/page.jsx +++ b/src/app/(panels)/suite/doctor/account/page.jsx @@ -45,7 +45,7 @@ const AccountPage = () => { if (!userData) return
Loading...
; if (userData) { - if (userData.role !== "caregiver") { + if (userData.role != "caregiver") { router.push("/suite/patient/dashboard"); } } diff --git a/src/app/(panels)/suite/doctor/dashboard/page.jsx b/src/app/(panels)/suite/doctor/dashboard/page.jsx index 2367f12..eb7ef22 100644 --- a/src/app/(panels)/suite/doctor/dashboard/page.jsx +++ b/src/app/(panels)/suite/doctor/dashboard/page.jsx @@ -23,7 +23,7 @@ export default function Dashboard() { }, [user]); if (userData) { - if (userData.role !== "caregiver") { + if (userData.role != "caregiver") { router.push("/suite/patient/dashboard"); } } diff --git a/src/app/(panels)/suite/patient/account/page.jsx b/src/app/(panels)/suite/patient/account/page.jsx index 9e4e5b2..8e54d75 100644 --- a/src/app/(panels)/suite/patient/account/page.jsx +++ b/src/app/(panels)/suite/patient/account/page.jsx @@ -22,7 +22,7 @@ const AccountPage = () => { }, [user]); if (userData) { - if (userData.role !== "patient") { + if (userData.role != "patient") { router.push("/suite/doctor/dashboard"); } } diff --git a/src/app/(panels)/suite/patient/chat/page.jsx b/src/app/(panels)/suite/patient/chat/page.jsx index 726270a..878feab 100644 --- a/src/app/(panels)/suite/patient/chat/page.jsx +++ b/src/app/(panels)/suite/patient/chat/page.jsx @@ -28,7 +28,7 @@ export default function Chat() { }, [user]); if (userData) { - if (userData.role !== "patient") { + if (userData.role != "patient") { router.push("/suite/doctor/dashboard"); } } diff --git a/src/app/(panels)/suite/patient/dashboard/page.jsx b/src/app/(panels)/suite/patient/dashboard/page.jsx index 06bb064..a4e211a 100644 --- a/src/app/(panels)/suite/patient/dashboard/page.jsx +++ b/src/app/(panels)/suite/patient/dashboard/page.jsx @@ -23,7 +23,7 @@ export default function Dashboard() { }, [user]); if (userData) { - if (userData.role !== "patient") { + if (userData.role != "patient") { router.push("/suite/doctor/dashboard"); } }