diff --git a/client/src/pages/SpringboardPage.tsx b/client/src/pages/SpringboardPage.tsx index 8e4a2d9..22f6a5d 100644 --- a/client/src/pages/SpringboardPage.tsx +++ b/client/src/pages/SpringboardPage.tsx @@ -30,6 +30,9 @@ export default function SpringboardPage() { useEffect(() => { retrieveUserInformation() .then((response) => { + if (response.accountType == 2) { + navigate("/admin"); + } setUserInformation(response); }) .catch((_) => {