1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

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

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 () {