From 7b6909eaa6b65728f19acd1fc12d4d420d61339d Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sun, 20 Nov 2022 20:25:04 +0000 Subject: [PATCH] fix: add default value to be even more secure against future regressions --- packages/desktop-client/src/components/accounts/Account.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/desktop-client/src/components/accounts/Account.js b/packages/desktop-client/src/components/accounts/Account.js index 1486142..e811229 100644 --- a/packages/desktop-client/src/components/accounts/Account.js +++ b/packages/desktop-client/src/components/accounts/Account.js @@ -106,6 +106,7 @@ function EmptyMessage({ onAdd }) { function ReconcilingMessage({ balanceQuery, targetBalance, onDone }) { let cleared = useSheetValue({ name: balanceQuery.name + '-cleared', + value: 0, query: balanceQuery.query.filter({ cleared: true }) }); let targetDiff = targetBalance - cleared;