1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix connection removal bug (#9137)

* fix remove connections bug
This commit is contained in:
Erik Marks 2020-08-04 13:02:48 -07:00 committed by GitHub
parent f7edc83a4e
commit 658e478f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]
}
}