Skip to content

Commit

Permalink
fix: Changed condition to check if the revocationRegistryIndex is und…
Browse files Browse the repository at this point in the history
…efined instead of falsy (#2008)

Signed-off-by: Tom Lanser <[email protected]>
  • Loading branch information
Tommylans authored Aug 24, 2024
1 parent c9ffa0b commit 0bcb623
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class AnonCredsCredentialFormatService implements CredentialFormatService
revocationRegistryIndex = Number(credentialMetadata.credentialRevocationId)
}

if (!revocationRegistryDefinitionId || !revocationRegistryIndex) {
if (!revocationRegistryDefinitionId || revocationRegistryIndex === undefined) {
throw new CredoError(
'Revocation registry definition id and revocation index are mandatory to issue AnonCreds revocable credentials'
)
Expand Down

0 comments on commit 0bcb623

Please sign in to comment.