From 2d687c98df5fdbbed619cee1f0c385f6881d2154 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 24 Dec 2018 11:29:12 -0500 Subject: [PATCH] dont return if no identity --- src/iOS.Core/Controllers/LoginAddViewController.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/iOS.Core/Controllers/LoginAddViewController.cs b/src/iOS.Core/Controllers/LoginAddViewController.cs index d2f7a082d..7076a88bd 100644 --- a/src/iOS.Core/Controllers/LoginAddViewController.cs +++ b/src/iOS.Core/Controllers/LoginAddViewController.cs @@ -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 {