Skip to content

Commit

Permalink
Merge pull request #36157 from Expensify/monil-fixCategoryCrash
Browse files Browse the repository at this point in the history
Fix crash on category page when category is out of policy
  • Loading branch information
Beamanator authored Feb 9, 2024
2 parents de26ff3 + 1e47b6f commit f74e840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ function getCategoryListSections(
}

const filteredRecentlyUsedCategories = recentlyUsedCategories
.filter((categoryName) => !selectedOptionNames.includes(categoryName) && categories[categoryName].enabled)
.filter((categoryName) => !selectedOptionNames.includes(categoryName) && categories[categoryName]?.enabled)
.map((categoryName) => ({
name: categoryName,
enabled: categories[categoryName].enabled ?? false,
Expand Down

0 comments on commit f74e840

Please sign in to comment.