1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

only get keys if private key returns null

This commit is contained in:
Kyle Spearrin
2017-05-22 09:28:11 -04:00
parent 81101f2890
commit 038e95dbdf
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ function initSyncService() {
self.cryptoService.getPrivateKey().then(function (privateKey) {
setKeys(!!privateKey, response, deferred);
}, function () {
setKeys(false, response, deferred);
setKeys(true, response, deferred);
});
}, function () {
deferred.reject();