Skip to content

Commit

Permalink
Fix connection removal bug (#9137)
Browse files Browse the repository at this point in the history
* fix remove connections bug
  • Loading branch information
rekmarks authored Aug 4, 2020
1 parent f7edc83 commit 658e478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Expand Down

0 comments on commit 658e478

Please sign in to comment.