Skip to content

Commit

Permalink
Merge pull request Expensify#38777 from FitseTLT/fix-category-crash-bug
Browse files Browse the repository at this point in the history
Fix - App crashes when click on Category while creating Money request
  • Loading branch information
MonilBhavsar authored Mar 27, 2024
2 parents 43f8b39 + 5334881 commit 9cc14e1
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 @@ -889,7 +889,7 @@ function sortCategories(categories: Record<string, Category>): Category[] {
if (name) {
const categoryObject: Category = {
name,
enabled: categories[name].enabled ?? false,
enabled: categories[name]?.enabled ?? false,
};

acc.push(categoryObject);
Expand Down

0 comments on commit 9cc14e1

Please sign in to comment.