Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmidyllic committed Sep 5, 2024
1 parent e71afe1 commit d26297b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/identity/identity-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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);
}

Expand Down

0 comments on commit d26297b

Please sign in to comment.