aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-04 13:40:27 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-04 13:40:27 +0800
commitaf439cc6cf10fa0387f7e2196d5fefaf84f2f0a2 (patch)
tree1c24ae25de9f017b9426963b9d11e92c7ddb70c2 /app
parent901eeb5c102dbd8e42d5835e4d35c10fe0301086 (diff)
downloadtangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.gz
tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.zst
tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.zip
Do not remove completed shapeshift deposits
Diffstat (limited to 'app')
-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))