From 2c0afdc525eafaf4886904a7a10eb5c80982e208 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 4 Mar 2024 08:03:40 -0700 Subject: [PATCH] simplify conditions/ --- src/pages/workspace/categories/WorkspaceCategoriesPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx index cdca609a58cd..a66642ff7d5e 100644 --- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx +++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx @@ -145,7 +145,7 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP {translate('workspace.categories.subtitle')} - {categoryList.length === 0 && isLoading && ( + {isLoading && ( )} - {categoryList.length > 0 && !isLoading && ( + {categoryList.length > 0 && (