Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
prv-proton committed Dec 4, 2024
1 parent 03b6531 commit de2f20e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frontend/src/utils/grid/cellRenderers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit de2f20e

Please sign in to comment.