dont return if no identity

This commit is contained in:
Kyle Spearrin 2018-12-24 11:29:12 -05:00
parent 9c2a6da692
commit 2d687c98df

View file

@ -176,13 +176,12 @@ 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 });
}
}
else
{
await ASHelpers.ReplaceAllIdentities(_cipherService);