diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-02-04 13:39:22 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-02-04 13:39:22 +0800 |
commit | 901eeb5c102dbd8e42d5835e4d35c10fe0301086 (patch) | |
tree | d35a61536bdc21ffc8bc78b55da4b355e2014045 /app | |
parent | 5d37f90787cdeec130537e61626f92d6f8a7b5e3 (diff) | |
download | tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.gz tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.bz2 tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.lz tangerine-wallet-browser-901eeb5c102dbd8e42d5835e4d35c10fe0301086.tar.xz 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.js | 4 |
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 () { |