Skip to content

A local-first personal finance app

Force transaction cleared checkboxes to show on reconcile view (#2589)

Matt Fiddamane88ea698011e
diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx
index 028295f3b2..010949fc6c 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 0000000000..1b353e7d65
--- /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