aboutsummaryrefslogtreecommitdiffstats
path: root/ui/index.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-09 06:43:51 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-09 06:43:51 +0800
commit4a7eab5b1aee8b122d06903bc032849d1c35a3a9 (patch)
tree3911014fabd11677573538727edbb95068457338 /ui/index.js
parent6c05c221cd8e8bef2ce4efc5ae03ee7a39e3e0bf (diff)
parentfc0f64a5a8cf23c0feed2e2583cf07de7c9548a5 (diff)
downloadtangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar.gz
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar.bz2
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar.lz
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar.xz
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.tar.zst
tangerine-wallet-browser-4a7eab5b1aee8b122d06903bc032849d1c35a3a9.zip
Merge branch 'master' into FixLogoLeak
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())
}