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");
}
}