diff --git a/src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx index 5a048e3bdc36..508b7b417b58 100644 --- a/src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx +++ b/src/pages/workspace/categories/WorkspaceCategoriesSettingsPage.tsx @@ -69,7 +69,7 @@ function WorkspaceCategoriesSettingsPage({policy, route}: WorkspaceCategoriesSet const isToggleDisabled = !policy?.areCategoriesEnabled || !hasEnabledOptions || isConnectedToAccounting; const setNewCategory = (selectedCategory: ListItem) => { - if (!selectedCategory.keyForList || !groupID) { + if (!selectedCategory.keyForList || !groupID || categoryID === selectedCategory.keyForList) { return; } Policy.setWorkspaceDefaultSpendCategory(policyID, groupID, selectedCategory.keyForList);