Fix bug when clearing old shapeshift txs

This commit is contained in:
Dan Finlay 2017-02-03 21:39:22 -08:00
parent 5d37f90787
commit 901eeb5c10
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ class ShapeshiftController {
const old = shapeShiftTxList.find((tx) => {
return tx.time + TIMEOUT_LIMIT < now
})
old.forEach(tx => this.removeShapeShiftTx(tx))
if (old) {
old.forEach(tx => this.removeShapeShiftTx(tx))
}
}
pollForUpdates () {