From d26297b6e8235ed1091bf49a161d87570cb9c8cc Mon Sep 17 00:00:00 2001 From: vmidyllic <74898029+vmidyllic@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:08:57 +0300 Subject: [PATCH] fix --- src/identity/identity-wallet.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/identity/identity-wallet.ts b/src/identity/identity-wallet.ts index 43221e21..358e79f2 100644 --- a/src/identity/identity-wallet.ts +++ b/src/identity/identity-wallet.ts @@ -666,7 +666,10 @@ export class IdentityWallet implements IIdentityWallet { } // if credential exists with the same credential status type we return this credential - if (credentials.length === 1 && credentials[0].credentialStatus.type === opts.revocationOpts.type) { + if ( + credentials.length === 1 && + credentials[0].credentialStatus.type === opts.revocationOpts.type + ) { return { did, credential: credentials[0] @@ -675,9 +678,7 @@ export class IdentityWallet implements IIdentityWallet { // if credential exists, but its credential status type is different from what user passes - we remove old credential // so we can upgrade credential status of auth credential for old identities - if ( - credentials.length === 1 - ) { + if (credentials.length === 1) { await this._credentialWallet.remove(credentials[0].id); }