agianaina gain

This commit is contained in:
Sir Blob
2025-01-26 03:54:47 -05:00
parent 10f9cc4e9b
commit f0eb7a49a5
5 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ const AccountPage = () => {
if (!userData) return <div>Loading...</div>;
if (userData) {
if (userData.role !== "caregiver") {
if (userData.role != "caregiver") {
router.push("/suite/patient/dashboard");
}
}

View File

@@ -23,7 +23,7 @@ export default function Dashboard() {
}, [user]);
if (userData) {
if (userData.role !== "caregiver") {
if (userData.role != "caregiver") {
router.push("/suite/patient/dashboard");
}
}

View File

@@ -22,7 +22,7 @@ const AccountPage = () => {
}, [user]);
if (userData) {
if (userData.role !== "patient") {
if (userData.role != "patient") {
router.push("/suite/doctor/dashboard");
}
}

View File

@@ -28,7 +28,7 @@ export default function Chat() {
}, [user]);
if (userData) {
if (userData.role !== "patient") {
if (userData.role != "patient") {
router.push("/suite/doctor/dashboard");
}
}

View File

@@ -23,7 +23,7 @@ export default function Dashboard() {
}, [user]);
if (userData) {
if (userData.role !== "patient") {
if (userData.role != "patient") {
router.push("/suite/doctor/dashboard");
}
}