Fixes bugs in 6.5.1 (#6613)

* fix bg error

* fix ui exception
feature/default_network_editable
Bruno Barbieri 6 years ago committed by Frankie
parent 985f51a764
commit 1d2cf52b64
  1. 2
      app/scripts/metamask-controller.js
  2. 2
      ui/lib/account-link.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) {

@ -1,5 +1,5 @@
module.exports = function (address, network, rpcPrefs) {
if (rpcPrefs.blockExplorerUrl) {
if (rpcPrefs && rpcPrefs.blockExplorerUrl) {
return `${rpcPrefs.blockExplorerUrl}/address/${address}`
}

Loading…
Cancel
Save