From 72f1970d029d10b5407ccc78ed787fc54d1c844a Mon Sep 17 00:00:00 2001 From: youngcw Date: Tue, 5 Sep 2023 11:02:51 -0700 Subject: [PATCH 1/2] hide hidden income on mobile --- .../src/components/budget/MobileBudgetTable.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 (