From e88ea698011e9a911756317a7164ee7454719dd9 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Sat, 13 Apr 2024 17:44:54 +0100 Subject: [PATCH] Force transaction cleared checkboxes to show on reconcile view (#2589) * Force transaction cleared checkboxes on reconcile view * Add release notes --- .../src/components/accounts/Account.jsx | 11 +++++++++-- upcoming-release-notes/2589.md | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/2589.md diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index 028295f3b27..010949fc6cb 100644 --- a/packages/desktop-client/src/components/accounts/Account.jsx +++ b/packages/desktop-client/src/components/accounts/Account.jsx @@ -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 () => { @@ -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 => { diff --git a/upcoming-release-notes/2589.md b/upcoming-release-notes/2589.md new file mode 100644 index 00000000000..1b353e7d65c --- /dev/null +++ b/upcoming-release-notes/2589.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [matt-fidd] +--- + +Force transaction cleared checkboxes to show on reconcile view