Skip to content

Commit

Permalink
Garrett suggestion for smaller if
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsummers1 authored Oct 22, 2024
1 parent a9593ec commit b6b1c5f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions services/ui-src/src/components/layout/FormActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ const FormActions = () => {
let sectionId = "";

const role = currentUser.role;
if (
role !== AppRoles.CMS_ADMIN &&
role !== AppRoles.INTERNAL_USER &&
role !== AppRoles.HELP_DESK &&
role !== AppRoles.CMS_APPROVER &&
role !== AppRoles.CMS_USER
) {
if (role == AppRoles.STATE_USER ) {
searchParams = document.location.pathname
.toString()
.replace("/sections/", "")
Expand Down

0 comments on commit b6b1c5f

Please sign in to comment.