Fix bug when clearing old shapeshift txs
This commit is contained in:
parent
5d37f90787
commit
901eeb5c10
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue