[PM-8833] Fixing issue that exists when user does not contain identity or card ciphers

This commit is contained in:
Cesar Gonzalez 2024-10-09 12:27:26 -05:00
parent f38840eb24
commit f5a0e95461
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 4 additions and 0 deletions

View File

@ -423,6 +423,10 @@ export class OverlayBackground implements OverlayBackgroundInterface {
CipherType.Identity, CipherType.Identity,
]) ])
).sort((a, b) => this.cipherService.sortCiphersByLastUsedThenName(a, b)); ).sort((a, b) => this.cipherService.sortCiphersByLastUsedThenName(a, b));
if (!this.cardAndIdentityCiphers) {
return cipherViews;
}
for (let cipherIndex = 0; cipherIndex < cipherViews.length; cipherIndex++) { for (let cipherIndex = 0; cipherIndex < cipherViews.length; cipherIndex++) {
const cipherView = cipherViews[cipherIndex]; const cipherView = cipherViews[cipherIndex];
if ( if (