fix: add default value to be even more secure against future regressions
This commit is contained in:
parent
3133ddcda3
commit
7b6909eaa6
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ function EmptyMessage({ onAdd }) {
|
||||||
function ReconcilingMessage({ balanceQuery, targetBalance, onDone }) {
|
function ReconcilingMessage({ balanceQuery, targetBalance, onDone }) {
|
||||||
let cleared = useSheetValue({
|
let cleared = useSheetValue({
|
||||||
name: balanceQuery.name + '-cleared',
|
name: balanceQuery.name + '-cleared',
|
||||||
|
value: 0,
|
||||||
query: balanceQuery.query.filter({ cleared: true })
|
query: balanceQuery.query.filter({ cleared: true })
|
||||||
});
|
});
|
||||||
let targetDiff = targetBalance - cleared;
|
let targetDiff = targetBalance - cleared;
|
||||||
|
|
Loading…
Reference in a new issue