From 1d2cf52b649866a15ea00733739cc0212a53e509 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Wed, 15 May 2019 04:53:09 -0400 Subject: Fixes bugs in 6.5.1 (#6613) * fix bg error * fix ui exception --- app/scripts/metamask-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/scripts/metamask-controller.js') diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 55ca96ad4..242028c92 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.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) { -- cgit