1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

dont throw error on none found

This commit is contained in:
Kyle Spearrin
2017-11-29 10:06:02 -05:00
parent c1fd8e47fb
commit b6a5180a6a
2 changed files with 4 additions and 5 deletions

View File

@@ -235,7 +235,7 @@ export default class CipherService {
async getLastUsedForDomain(domain: string): Promise<any> {
const ciphers = await this.getAllDecryptedForDomain(domain);
if (ciphers.length === 0) {
throw new Error('No ciphers.');
return null;
}
const sortedCiphers = ciphers.sort(CipherService.sortCiphersByLastUsed);