handle null condition when decrypting

This commit is contained in:
Kyle Spearrin 2017-04-13 11:53:07 -04:00
parent 7042f4bca8
commit 0d29c75e7f
1 changed files with 2 additions and 2 deletions

View File

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