aboutsummaryrefslogtreecommitdiffstats
path: root/ui/index.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-09-13 06:25:36 +0800
committerkumavis <aaron@kumavis.me>2016-09-13 06:25:36 +0800
commit850b6d144092291bb80ad998d3f8177da9c98c13 (patch)
tree94666fa470c77971c56217e762fece18bf2e3edf /ui/index.js
parent2f289fb115f0b09ab7852b4c89b3c39c5bf6ec4e (diff)
parentb8f75e387a91135b870c9f268977445c8e0877a4 (diff)
downloadtangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar.gz
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar.bz2
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar.lz
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar.xz
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.tar.zst
tangerine-wallet-browser-850b6d144092291bb80ad998d3f8177da9c98c13.zip
Merge branch 'master' of github.com:MetaMask/metamask-plugin into library
Diffstat (limited to 'ui/index.js')
-rw-r--r--ui/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/index.js b/ui/index.js
index 8cf74f6ee..0e69b00d6 100644
--- a/ui/index.js
+++ b/ui/index.js
@@ -3,7 +3,7 @@ const h = require('react-hyperscript')
const Root = require('./app/root')
const actions = require('./app/actions')
const configureStore = require('./app/store')
-
+const txHelper = require('./lib/tx-helper')
module.exports = launchApp
function launchApp (opts) {
@@ -34,7 +34,8 @@ function startApp (metamaskState, accountManager, opts) {
})
// if unconfirmed txs, start on txConf page
- if (Object.keys(metamaskState.unconfTxs || {}).length) {
+ var unconfirmedTxsAll = txHelper(metamaskState.unconfTxs, metamaskState.unconfMsgs, metamaskState.network)
+ if (unconfirmedTxsAll.length > 0) {
store.dispatch(actions.showConfTxPage())
}