diff options
author | Bruno Barbieri <brunobar79@gmail.com> | 2019-05-15 16:53:09 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-05-15 16:53:09 +0800 |
commit | 1d2cf52b649866a15ea00733739cc0212a53e509 (patch) | |
tree | a3c08a7cfb3245a8b822a5dd57cd16630d33465a | |
parent | 985f51a764560311e8aa5bb149e34b3c25b78c92 (diff) | |
download | tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar.gz tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar.bz2 tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar.lz tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar.xz tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.tar.zst tangerine-wallet-browser-1d2cf52b649866a15ea00733739cc0212a53e509.zip |
Fixes bugs in 6.5.1 (#6613)
* fix bg error
* fix ui exception
-rw-r--r-- | app/scripts/metamask-controller.js | 2 | ||||
-rw-r--r-- | ui/lib/account-link.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 55ca96ad4..242028c92 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -343,7 +343,7 @@ module.exports = class MetamaskController extends EventEmitter { updatePublicConfigStore(this.getState()) publicConfigStore.destroy = () => { - this.removeEventListener('update', updatePublicConfigStore) + this.removeEventListener && this.removeEventListener('update', updatePublicConfigStore) } function updatePublicConfigStore (memState) { diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js index f1428ba92..f2e321991 100644 --- a/ui/lib/account-link.js +++ b/ui/lib/account-link.js @@ -1,5 +1,5 @@ module.exports = function (address, network, rpcPrefs) { - if (rpcPrefs.blockExplorerUrl) { + if (rpcPrefs && rpcPrefs.blockExplorerUrl) { return `${rpcPrefs.blockExplorerUrl}/address/${address}` } |