agianaina gain
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function Dashboard() {
|
||||
}, [user]);
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "caregiver") {
|
||||
if (userData.role != "caregiver") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ const AccountPage = () => {
|
||||
}, [user]);
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "patient") {
|
||||
if (userData.role != "patient") {
|
||||
router.push("/suite/doctor/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function Chat() {
|
||||
}, [user]);
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "patient") {
|
||||
if (userData.role != "patient") {
|
||||
router.push("/suite/doctor/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function Dashboard() {
|
||||
}, [user]);
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "patient") {
|
||||
if (userData.role != "patient") {
|
||||
router.push("/suite/doctor/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user