From a791e3dfac5c46547c6b3f85916b1eb9b852da2b Mon Sep 17 00:00:00 2001 From: Neal Date: Fri, 8 Dec 2023 14:23:36 -0600 Subject: [PATCH] updates --- packages/credentials/src/presentation-exchange.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/credentials/src/presentation-exchange.ts b/packages/credentials/src/presentation-exchange.ts index bc20334f3..08fecca19 100644 --- a/packages/credentials/src/presentation-exchange.ts +++ b/packages/credentials/src/presentation-exchange.ts @@ -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[] ?? [])); } /**