Fix connection removal bug (#9137)

* fix remove connections bug
feature/default_network_editable
Erik Marks 4 years ago committed by GitHub
parent f7edc83a4e
commit 658e478f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/scripts/metamask-controller.js

@ -1722,7 +1722,7 @@ export default class MetamaskController extends EventEmitter {
delete connections[id]
if (Object.keys(connections.length === 0)) {
if (Object.keys(connections).length === 0) {
delete this.connections[origin]
}
}

Loading…
Cancel
Save