aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/controllers')
-rw-r--r--app/scripts/lib/controllers/shapeshift.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/controllers/shapeshift.js b/app/scripts/lib/controllers/shapeshift.js
index ec27b37a0..fbdc2c180 100644
--- a/app/scripts/lib/controllers/shapeshift.js
+++ b/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))