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);