From c9ffa0b49672281f1886a53a7a1c6ab742c1ac3f Mon Sep 17 00:00:00 2001 From: Danny Hunn <32263414+DJHunn39@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:49:06 +0100 Subject: [PATCH] fix: 1993 assign satisfiedSubmissions to submissionEntry in `getSubmissionRequirementRulePick` (#1994) fix: assign satisfiedSubmissions to submissionEntry Signed-off-by: DJHunn39 Co-authored-by: Berend Sliedrecht <61358536+berendsliedrecht@users.noreply.github.com> --- .../dif-presentation-exchange/utils/credentialSelection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/modules/dif-presentation-exchange/utils/credentialSelection.ts b/packages/core/src/modules/dif-presentation-exchange/utils/credentialSelection.ts index 838de91e98..975062de18 100644 --- a/packages/core/src/modules/dif-presentation-exchange/utils/credentialSelection.ts +++ b/packages/core/src/modules/dif-presentation-exchange/utils/credentialSelection.ts @@ -273,7 +273,7 @@ function getSubmissionRequirementRulePick( // if the requirement is satisfied, we only need to return the satisfied submissions // however if the requirement is not satisfied, we include all entries so the wallet could // render which credentials are missing. - submission: + submissionEntry: satisfiedSubmissions.length >= selectedSubmission.needsCount ? satisfiedSubmissions : [...satisfiedSubmissions, ...unsatisfiedSubmissions],