fix: properly check old txs dispense confirmation

This commit is contained in:
José Oliveira 2021-06-22 15:53:26 +01:00 committed by Josh Harvey
parent e06ffd76af
commit 9d646ca29d

View file

@ -76,7 +76,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)