From ccc13f4d48fe0ecbaa2abd689b6fa90891d87b36 Mon Sep 17 00:00:00 2001 From: carkom Date: Tue, 5 Dec 2023 23:08:32 +0000 Subject: [PATCH] variable name changes --- .../src/components/reports/ReportOptions.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/desktop-client/src/components/reports/ReportOptions.tsx b/packages/desktop-client/src/components/reports/ReportOptions.tsx index b9299d9c61b..7077d497cac 100644 --- a/packages/desktop-client/src/components/reports/ReportOptions.tsx +++ b/packages/desktop-client/src/components/reports/ReportOptions.tsx @@ -116,11 +116,11 @@ 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, @@ -128,9 +128,9 @@ export const categoryLists = ( 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;