more build
This commit is contained in:
1 parent
53ef1d2898
commit
10f9cc4e9b
2 files changed
+2
-2
No files matched your search
@@ -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