Skip to content

Commit

Permalink
bbs plus credential
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Nov 3, 2023
1 parent 64a592a commit 2d32fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wasm/src/services/credential/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class CredentialService {

let idx = 0;
for (const {attributesToReveal} of credentials) {
const attributesToSkip = descriptorBounds[idx].map((bound) => bound.attributeName);
const attributesToSkip = descriptorBounds[idx] ? descriptorBounds[idx].map((bound) => bound.attributeName) : [];
const filteredAttributes = attributesToReveal.filter((attribute) => !attributesToSkip.includes(attribute));

if (Array.isArray(filteredAttributes) && filteredAttributes.length > 0) {
Expand Down

0 comments on commit 2d32fb7

Please sign in to comment.