Skip to content

Commit

Permalink
Add timeout for outOfCash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto authored and joshmh committed Dec 11, 2018
1 parent 64be602 commit 43da364
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ Brain.prototype.processDispenseGeneratorAction = function processDispenseGenerat
return
case 'fastUpdateTx':
return this.fastUpdateTx(event.value)
case 'timedState':
return this._timedState(event.state, event.auxData)
case 'transitionState':
return this._transitionState(event.state, event.auxData)
case 'completed':
Expand Down
2 changes: 1 addition & 1 deletion lib/dispense-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const dispenseGenerator = function * dispenseGenerator (notes, tx, txId) {
})

if (!dispenseConfirmed) {
return emit({ action: 'transitionState', state: 'outOfCash' })
return emit({ action: 'timedState', state: 'outOfCash' })
}

const toAddress = coinUtils.formatAddress(tx.cryptoCode, tx.toAddress)
Expand Down

0 comments on commit 43da364

Please sign in to comment.