mirror of
https://github.com/bitwarden/web
synced 2025-12-13 14:53:25 +00:00
handle null condition when decrypting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user