aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-04 13:39:22 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-04 13:39:22 +0800
commit901eeb5c102dbd8e42d5835e4d35c10fe0301086 (patch)
treed35a61536bdc21ffc8bc78b55da4b355e2014045 /app
parent5d37f90787cdeec130537e61626f92d6f8a7b5e3 (diff)
downloadtangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.gz
tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.zst
tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.zip
Fix bug when clearing old shapeshift txs
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/controllers/shapeshift.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/lib/controllers/shapeshift.js b/app/scripts/lib/controllers/shapeshift.js
index 6d1c95323..ec27b37a0 100644
--- a/app/scripts/lib/controllers/shapeshift.js
+++ b/app/scripts/lib/controllers/shapeshift.js
@@ -39,7 +39,9 @@ class ShapeshiftController {
const old = shapeShiftTxList.find((tx) => {
return tx.time + TIMEOUT_LIMIT < now
})
- old.forEach(tx => this.removeShapeShiftTx(tx))
+ if (old) {
+ old.forEach(tx => this.removeShapeShiftTx(tx))
+ }
}
pollForUpdates () {