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