Skip to content

Commit

Permalink
Mobile: don't show hidden income categories (actualbudget#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngcw authored Sep 6, 2023
1 parent 0af4e4f commit 535296a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/desktop-client/src/components/budget/MobileBudgetTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ListItem
style={{
Expand Down Expand Up @@ -699,6 +709,7 @@ class IncomeBudgetGroup extends Component {
key={category.id}
type={type}
name={category.name}
hidden={category.hidden}
budget={
type === 'report'
? reportBudget.catBudgeted(category.id)
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1656.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [youngcw]
---

Don't show hidden income categories on mobile

0 comments on commit 535296a

Please sign in to comment.