context menu no matching logins fix

This commit is contained in:
Vlad 2021-03-09 20:02:57 +03:00
parent 518722c781
commit c7040231e5
1 changed files with 4 additions and 4 deletions

View File

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