Skip to content

Commit

Permalink
Fix review - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Feb 17, 2023
1 parent 30340ff commit 77968f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ADMIN_PERMISSIONS = [
];

const AdministrationList = ({ accountBoxItems, onDismiss }: AdministrationListProps): ReactElement => {
const hasAuditLicense = Boolean(useHasLicenseModule('auditing'));
const hasAuditLicense = useHasLicenseModule('auditing') === true;
const hasAdminPermission = useAtLeastOnePermission(ADMIN_PERMISSIONS);
const hasManageAppsPermission = usePermission('manage-apps');
const hasAuditPermission = usePermission('can-audit') && hasAuditLicense;
Expand Down

0 comments on commit 77968f2

Please sign in to comment.