dont return if no identity

This commit is contained in:
Kyle Spearrin 2018-12-24 11:29:12 -05:00
parent 9c2a6da692
commit 2d687c98df
1 changed files with 3 additions and 4 deletions

View File

@ -176,12 +176,11 @@ namespace Bit.iOS.Core.Controllers
if (await ASHelpers.IdentitiesCanIncremental())
{
var identity = await ASHelpers.GetCipherIdentityAsync(saveTask.Result.Result.Id, _cipherService);
if (identity == null)
if (identity != null)
{
return;
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
new ASPasswordCredentialIdentity[] { identity });
}
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
new ASPasswordCredentialIdentity[] { identity });
}
else
{