From c7040231e5800ed35c8a12be7d826f11c60191ba Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 9 Mar 2021 20:02:57 +0300 Subject: [PATCH] context menu no matching logins fix --- src/background/main.background.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/background/main.background.ts b/src/background/main.background.ts index 492a07be6b0..776580d3144 100644 --- a/src/background/main.background.ts +++ b/src/background/main.background.ts @@ -540,13 +540,13 @@ export default class MainBackground { theText = ciphers.length.toString(); } else if (ciphers.length > 0) { theText = '9+'; - } else { - if (contextMenuEnabled) { - await this.loadNoLoginsContextMenuOptions(this.i18nService.t('noMatchingLogins')); - } } } + if (contextMenuEnabled && ciphers.length === 0) { + await this.loadNoLoginsContextMenuOptions(this.i18nService.t('noMatchingLogins')); + } + this.sidebarActionSetBadgeText(theText, tabId); this.browserActionSetBadgeText(theText, tabId);