1
0
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:
Dan Finlay 2017-02-03 21:40:27 -08:00
parent 901eeb5c10
commit af439cc6cf

View File

@ -37,7 +37,8 @@ class ShapeshiftController {
const { shapeShiftTxList } = this.store.getState()
const now = new Date().getTime()
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) {
old.forEach(tx => this.removeShapeShiftTx(tx))