1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02: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 Mark Stacey
parent 041b5e595a
commit c33eecb33b

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