more build

This commit is contained in:
Sir Blob
2025-01-26 03:51:09 -05:00
parent 53ef1d2898
commit 10f9cc4e9b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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