From 8e99a537ca979789edf00f7e47f78c06af12df3b Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Mon, 4 Mar 2019 17:47:07 -0600 Subject: [PATCH] Simplify --- app/scripts/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/background.js b/app/scripts/background.js index 099406c70..189858a1d 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -448,7 +448,7 @@ function setupController (initState, initLangCode) { function triggerUi () { extension.tabs.query({ active: true }, tabs => { const currentlyActiveMetamaskTab = Boolean(tabs.find(tab => openMetamaskTabsIDs[tab.id])) - if ((!popupIsOpen || notificationIsOpen) && !currentlyActiveMetamaskTab) { + if (!popupIsOpen && !currentlyActiveMetamaskTab) { notificationManager.showPopup() notificationIsOpen = true }