mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-28 17:27:50 +01:00
handle null condition when decrypting
This commit is contained in:
parent
7042f4bca8
commit
0d29c75e7f
@ -125,10 +125,10 @@ angular
|
||||
property = cryptoService.decrypt(property, key);
|
||||
}
|
||||
catch (err) {
|
||||
property = '[error: cannot decrypt]';
|
||||
property = null;
|
||||
}
|
||||
|
||||
return property;
|
||||
return property || '[error: cannot decrypt]';
|
||||
};
|
||||
|
||||
_service.encryptLogins = function (unencryptedLogins, key) {
|
||||
|
Loading…
Reference in New Issue
Block a user