Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Dec 8, 2023
1 parent 7b59d5b commit a791e3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/credentials/src/presentation-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export class PresentationExchange {
): string[] {
this.resetPex();
const selectResults: SelectResults = this.pex.selectFrom(presentationDefinition, vcJwts);
const selectedCredentials = selectResults.verifiableCredential as string[] ?? [];
return [...new Set(selectedCredentials)];
return Array.from(new Set(selectResults.verifiableCredential as string[] ?? []));
}

/**
Expand Down

0 comments on commit a791e3d

Please sign in to comment.