auth more stuff
This commit is contained in:
@@ -43,10 +43,6 @@ const AccountPage = () => {
|
||||
}
|
||||
};
|
||||
|
||||
if (!userData) {
|
||||
router.push('/');
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container mx-auto p-4">
|
||||
<Card>
|
||||
|
||||
@@ -26,8 +26,6 @@ export default function Dashboard() {
|
||||
if (userData.role !== "doctor") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
} else {
|
||||
router.push("/");
|
||||
}
|
||||
|
||||
const patients = [
|
||||
|
||||
@@ -23,8 +23,6 @@ const AccountPage = () => {
|
||||
if (userData.role !== "doctor") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
} else {
|
||||
router.push("/");
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -31,8 +31,6 @@ export default function Chat() {
|
||||
if (userData.role !== "doctor") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
} else {
|
||||
router.push("/");
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -26,8 +26,6 @@ export default function Dashboard() {
|
||||
if (userData.role !== "doctor") {
|
||||
router.push("/suite/patient/dashboard");
|
||||
}
|
||||
} else {
|
||||
router.push("/");
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user