diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
index 68920761ccde..cdca609a58cd 100644
--- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
+++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
@@ -111,6 +111,8 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP
Navigation.navigate(ROUTES.WORKSPACE_CATEGORY_SETTINGS.getRoute(route.params.policyID, category.text));
};
+ const isLoading = !isOffline && policyCategories === undefined;
+
const settingsButton = (
- {!isOffline && policyCategories === undefined && (
+ {categoryList.length === 0 && isLoading && (
)}
- {(isOffline || Boolean(policyCategories)) && categoryList.length === 0 && (
+ {categoryList.length === 0 && !isLoading && (
)}
- {(isOffline || Boolean(policyCategories)) && Boolean(categoryList.length) && (
+ {categoryList.length > 0 && !isLoading && (