Skip to content

Commit

Permalink
Force transaction cleared checkboxes to show on reconcile view (actua…
Browse files Browse the repository at this point in the history
…lbudget#2589)

* Force transaction cleared checkboxes on reconcile view

* Add release notes
  • Loading branch information
matt-fidd authored Apr 13, 2024
1 parent 9aeab0f commit e88ea69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/desktop-client/src/components/accounts/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,11 @@ class AccountInternal extends PureComponent {
};

onReconcile = async balance => {
this.setState({ reconcileAmount: balance });
this.setState(({ showCleared }) => ({
reconcileAmount: balance,
showCleared: true,
prevShowCleared: showCleared,
}));
};

onDoneReconciling = async () => {
Expand Down Expand Up @@ -783,7 +787,10 @@ class AccountInternal extends PureComponent {
await this.lockTransactions();
}

this.setState({ reconcileAmount: null });
this.setState({
reconcileAmount: null,
showCleared: this.state.prevShowCleared,
});
};

onCreateReconciliationTransaction = async diff => {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2589.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [matt-fidd]
---

Force transaction cleared checkboxes to show on reconcile view

0 comments on commit e88ea69

Please sign in to comment.