From 4d1b623ec6c66d7cbf17e5c5e100db147ddcc95f Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Tue, 23 Jul 2024 16:45:59 +0800 Subject: [PATCH] Kick admins off springboard --- client/src/pages/SpringboardPage.tsx | 3 +++ 1 file changed, 3 insertions(+) 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((_) => {