diff options
Diffstat (limited to 'ui/index.js')
-rw-r--r-- | ui/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/index.js b/ui/index.js index 8cf74f6ee..0cd6ac735 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 > 0) { store.dispatch(actions.showConfTxPage()) } |