From 535296a6e76f868f73d198c470a51b05df2046e5 Mon Sep 17 00:00:00 2001 From: youngcw Date: Wed, 6 Sep 2023 12:42:38 -0600 Subject: [PATCH] Mobile: don't show hidden income categories (#1656) --- .../src/components/budget/MobileBudgetTable.js | 15 +++++++++++++-- upcoming-release-notes/1656.md | 6 ++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/1656.md diff --git a/packages/desktop-client/src/components/budget/MobileBudgetTable.js b/packages/desktop-client/src/components/budget/MobileBudgetTable.js index 165bb752dc9..8aba0d0d163 100644 --- a/packages/desktop-client/src/components/budget/MobileBudgetTable.js +++ b/packages/desktop-client/src/components/budget/MobileBudgetTable.js @@ -488,8 +488,18 @@ class TotalsRow extends PureComponent { class IncomeCategory extends PureComponent { render() { - const { name, budget, balance, style, nameTextStyle, amountTextStyle } = - this.props; + const { + name, + budget, + hidden, + balance, + style, + nameTextStyle, + amountTextStyle, + } = this.props; + if (hidden) { + return null; + } return (