diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-02-04 13:40:27 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-02-04 13:40:27 +0800 |
commit | af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2 (patch) | |
tree | 1c24ae25de9f017b9426963b9d11e92c7ddb70c2 /app | |
parent | 901eeb5c102dbd8e42d5835e4d35c10fe0301086 (diff) | |
download | tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.gz tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.bz2 tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.lz tangerine-wallet-browser-af439cc6cf10fa0387f7e2196d5fefaf84f2f0a2.tar.xz 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.js | 3 |
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)) |