From 57d9cd39eefba7502078cf9143f34ba6b957ce63 Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Mon, 4 Sep 2023 00:07:58 +0800 Subject: [PATCH] Remove custom "show all groups" behavior for admins --- src/pages/academy/grading/Grading.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/academy/grading/Grading.tsx b/src/pages/academy/grading/Grading.tsx index bfea103d6e..0fec1a1d8e 100644 --- a/src/pages/academy/grading/Grading.tsx +++ b/src/pages/academy/grading/Grading.tsx @@ -34,10 +34,6 @@ const Grading: React.FC = () => { const isAdmin = role === Role.Admin; const [showAllGroups, setShowAllGroups] = useState(isAdmin || group === null); - const handleShowAllGroups = (value: boolean) => { - // Admins will always see all groups regardless - setShowAllGroups(isAdmin || value); - }; const groupOptions = [ { value: false, label: 'my groups' }, { value: true, label: 'all groups' } @@ -122,7 +118,7 @@ const Grading: React.FC = () => {