Skip to content

Commit

Permalink
variable name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Dec 5, 2023
1 parent 2d47e98 commit ccc13f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/desktop-client/src/components/reports/ReportOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,21 @@ let uncategouncatGrouprizedGroup: UncategorizedGroupEntity = {
};

export const categoryLists = (
hidden: boolean,
uncat: boolean,
showOffBudgetHidden: boolean,
showUncategorized: boolean,
categories: { list: CategoryEntity[]; grouped: CategoryGroupEntity[] },
) => {
let categoryList = uncat
let categoryList = showUncategorized
? [
...categories.list,
uncategorizedCategory,
transferCategory,
offBudgetCategory,
]
: categories.list;
let categoryGroup = uncat
let categoryGroup = showUncategorized
? [
...categories.grouped.filter(f => hidden || !f.hidden),
...categories.grouped.filter(f => showOffBudgetHidden || !f.hidden),
uncategouncatGrouprizedGroup,
]
: categories.grouped;
Expand Down

0 comments on commit ccc13f4

Please sign in to comment.