more build
This commit is contained in:
@@ -45,7 +45,7 @@ const AccountPage = () => {
|
||||
if (!userData) return <div>Loading...</div>;
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "doctor") {
|
||||
if (userData.role !== "caregiver") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function Dashboard() {
|
||||
}, [user]);
|
||||
|
||||
if (userData) {
|
||||
if (userData.role !== "doctor") {
|
||||
if (userData.role !== "caregiver") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user