Skip to content

Commit

Permalink
Merge pull request #49895 from Krishna2323/krishna2323/issue/49295
Browse files Browse the repository at this point in the history
fix: Categories - RBR appears next to workspace after selecting the deleted spend category offline.
  • Loading branch information
NikkiWines authored Oct 4, 2024
2 parents 821edc5 + 72750b6 commit cb9d207
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ function WorkspaceCategoriesSettingsPage({policy, route}: WorkspaceCategoriesSet
if (!selectedCategory.keyForList || !groupID) {
return;
}
Policy.setWorkspaceDefaultSpendCategory(policyID, groupID, selectedCategory.keyForList);
if (categoryID !== selectedCategory.keyForList) {
Policy.setWorkspaceDefaultSpendCategory(policyID, groupID, selectedCategory.keyForList);
}
setIsSelectorModalVisible(false);
};

Expand Down

0 comments on commit cb9d207

Please sign in to comment.