Do not remove completed shapeshift deposits

feature/default_network_editable
Dan Finlay 8 years ago
parent 901eeb5c10
commit af439cc6cf
  1. 3
      app/scripts/lib/controllers/shapeshift.js

@ -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))

Loading…
Cancel
Save