Skip to content

Commit

Permalink
chore: evaluationResults.errors eval fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Sep 26, 2024
1 parent 9017e1f commit 95e52dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"node": ">=18"
},
"resolutions": {
"node-fetch": "2.6.12"
"node-fetch": "2.6.12",
"@sphereon/pex": "5.0.0-unstable.8"
},
"prettier": {
"endOfLine": "auto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class PresentationExchange {
throw new Error(SIOPErrors.NO_PRESENTATION_SUBMISSION)
}

if (!evaluationResults.areRequiredCredentialsPresent || evaluationResults.errors || !evaluationResults.value) {
if (!evaluationResults.areRequiredCredentialsPresent || evaluationResults.errors.length > 0 || !evaluationResults.value) {
throw new Error(`message: ${SIOPErrors.COULD_NOT_FIND_VCS_MATCHING_PD}, details: ${JSON.stringify(evaluationResults.errors)}`)
}

Expand Down
1 change: 1 addition & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 95e52dc

Please sign in to comment.