fix: properly check old txs dispense confirmation
This commit is contained in:
parent
e06ffd76af
commit
9d646ca29d
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ function preProcess (t, oldTx, newTx, pi) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasError = !oldTx.error && newTx.error
|
const hasError = !oldTx.error && newTx.error
|
||||||
const hasDispenseOccurred = !dispenseOccurred(oldTx.bills) && dispenseOccurred(newTx.bills)
|
const hasDispenseOccurred = !oldTx.dispenseConfirmed && dispenseOccurred(newTx.bills)
|
||||||
|
|
||||||
if (hasError || hasDispenseOccurred) {
|
if (hasError || hasDispenseOccurred) {
|
||||||
return cashOutActions.logDispense(t, updatedTx)
|
return cashOutActions.logDispense(t, updatedTx)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue