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:
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
Block a user