fix: add default value to be even more secure against future regressions

This commit is contained in:
Matiss Janis Aboltins 2022-11-20 20:25:04 +00:00 committed by James Long
parent 3133ddcda3
commit 7b6909eaa6

View file

@ -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;