diff --git a/packages/desktop-client/src/components/accounts/Reconcile.js b/packages/desktop-client/src/components/accounts/Reconcile.js index 0b684d640a5..0f02ffe2e89 100644 --- a/packages/desktop-client/src/components/accounts/Reconcile.js +++ b/packages/desktop-client/src/components/accounts/Reconcile.js @@ -96,12 +96,7 @@ export function ReconcilingMessage({ } export function ReconcileTooltip({ account, onReconcile, onClose }) { - let balanceQuery = queries.accountBalance(account); - let clearedBalance = useSheetValue({ - name: balanceQuery.name + '-cleared', - value: null, - query: balanceQuery.query.filter({ cleared: true }), - }); + let balance = useSheetValue(queries.accountBalance(account)); let format = useFormat(); function onSubmit(e) { @@ -109,7 +104,7 @@ export function ReconcileTooltip({ account, onReconcile, onClose }) { let input = e.target.elements[0]; let amount = currencyToInteger(input.value); if (amount != null) { - onReconcile(amount == null ? clearedBalance : amount); + onReconcile(amount == null ? balance : amount); onClose(); } else { input.select(); @@ -124,10 +119,10 @@ export function ReconcileTooltip({ account, onReconcile, onClose }) { reconcile with:
- {clearedBalance != null && ( + {balance != null && ( @@ -137,4 +132,4 @@ export function ReconcileTooltip({ account, onReconcile, onClose }) { ); -} +} \ No newline at end of file diff --git a/upcoming-release-notes/1678.md b/upcoming-release-notes/1678.md deleted file mode 100644 index a3166d459e2..00000000000 --- a/upcoming-release-notes/1678.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -category: Bugfix -authors: [shaankhosla] ---- - -Fixes the reconciliation tooltip to use the cleared balance instead of the balance from all transactions \ No newline at end of file