diff --git a/src/authorization-response/PresentationExchange.ts b/src/authorization-response/PresentationExchange.ts index 319c425c..96d40d08 100644 --- a/src/authorization-response/PresentationExchange.ts +++ b/src/authorization-response/PresentationExchange.ts @@ -228,7 +228,7 @@ export class PresentationExchange { const definitionRefs = extractDataFromPath(authorizationRequestPayload, '$.presentation_definition_uri'); const definitionRefsFromList = extractDataFromPath(authorizationRequestPayload, '$.presentation_definition_uri[*]'); const hasPD = (definitions && definitions.length > 0) || (definitionsFromList && definitionsFromList.length > 0); - const hasPdRef = (definitionRefs && definitionRefs.length > 0) || (definitionRefsFromList && definitionsFromList.length > 0); + const hasPdRef = (definitionRefs && definitionRefs.length > 0) || (definitionRefsFromList && definitionRefsFromList.length > 0); if (hasPD && hasPdRef) { throw new Error(SIOPErrors.REQUEST_CLAIMS_PRESENTATION_DEFINITION_BY_REF_AND_VALUE_NON_EXCLUSIVE); }