From 77968f2b75d738f2a6df31d5050d60f6a0cbf920 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 17 Feb 2023 18:32:41 -0300 Subject: [PATCH] Fix review - 3 --- .../client/components/AdministrationList/AdministrationList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/client/components/AdministrationList/AdministrationList.tsx b/apps/meteor/client/components/AdministrationList/AdministrationList.tsx index 67e0c66c1562..8270738b0e11 100644 --- a/apps/meteor/client/components/AdministrationList/AdministrationList.tsx +++ b/apps/meteor/client/components/AdministrationList/AdministrationList.tsx @@ -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;