1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-24 11:55:38 +01:00

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,12 +176,11 @@ namespace Bit.iOS.Core.Controllers
if (await ASHelpers.IdentitiesCanIncremental()) if (await ASHelpers.IdentitiesCanIncremental())
{ {
var identity = await ASHelpers.GetCipherIdentityAsync(saveTask.Result.Result.Id, _cipherService); 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 else
{ {