From de2f20e24614231e8ab0aa318401b88ef8bdf925 Mon Sep 17 00:00:00 2001 From: prv-proton Date: Wed, 4 Dec 2024 10:01:14 -0800 Subject: [PATCH] . --- frontend/src/utils/grid/cellRenderers.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/utils/grid/cellRenderers.jsx b/frontend/src/utils/grid/cellRenderers.jsx index dc2a5e0e7..7563007f4 100644 --- a/frontend/src/utils/grid/cellRenderers.jsx +++ b/frontend/src/utils/grid/cellRenderers.jsx @@ -549,11 +549,7 @@ export const RoleRenderer = (props) => { .filter((role) => role !== roles.government && role !== roles.supplier) useEffect(() => { - setIsGovernmentRole( - Array.isArray(value) - ? value.includes(roles.government) - : value.includes(roles.government) - ) + setIsGovernmentRole(value.includes(roles.government)) }, [value]) return (