mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Do not remove completed shapeshift deposits
This commit is contained in:
parent
901eeb5c10
commit
af439cc6cf
@ -37,7 +37,8 @@ class ShapeshiftController {
|
|||||||
const { shapeShiftTxList } = this.store.getState()
|
const { shapeShiftTxList } = this.store.getState()
|
||||||
const now = new Date().getTime()
|
const now = new Date().getTime()
|
||||||
const old = shapeShiftTxList.find((tx) => {
|
const old = shapeShiftTxList.find((tx) => {
|
||||||
return tx.time + TIMEOUT_LIMIT < now
|
return tx.time + TIMEOUT_LIMIT < now &&
|
||||||
|
tx.response && tx.response.status === 'no_deposits'
|
||||||
})
|
})
|
||||||
if (old) {
|
if (old) {
|
||||||
old.forEach(tx => this.removeShapeShiftTx(tx))
|
old.forEach(tx => this.removeShapeShiftTx(tx))
|
||||||
|
Loading…
Reference in New Issue
Block a user