diff options
author | Frances Pangilinan <frankie.diamond@gmail.com> | 2016-12-21 05:12:14 +0800 |
---|---|---|
committer | Frances Pangilinan <frankie.diamond@gmail.com> | 2016-12-22 05:41:49 +0800 |
commit | 1ebcbe296b060c9cf431d485d7bb84f696edbdf5 (patch) | |
tree | 0b9cf46894b54f61476b2ebc74d069cab6dc46cd /app/scripts/background.js | |
parent | 6e78494846c9032fbf1264a0225c0df4df0867cb (diff) | |
download | tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar.gz tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar.bz2 tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar.lz tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar.xz tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.tar.zst tangerine-wallet-browser-1ebcbe296b060c9cf431d485d7bb84f696edbdf5.zip |
Migrate all tx mutation code out of keyring controller and
Fix up txManager to reflect code review requests
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index a7e525999..d05ec989f 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -101,10 +101,10 @@ txManager.on('update', updateBadge) function updateBadge () { var label = '' - var unconfTxLen = controller.txManager.unconfTxCount + var unapprovedTxCount = controller.txManager.unapprovedTxCount var unconfMsgs = messageManager.unconfirmedMsgs() var unconfMsgLen = Object.keys(unconfMsgs).length - var count = unconfTxLen + unconfMsgLen + var count = unapprovedTxCount + unconfMsgLen if (count) { label = String(count) } |