Skip to content

Commit

Permalink
SPHEREON-1157: responseOpts.presentationExchange can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Feb 28, 2024
1 parent e16d20b commit a026323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authorization-response/AuthorizationResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class AuthorizationResponse {
verificationCallback: verifyOpts.verification.presentationVerificationCallback,
opts: {
...responseOpts.presentationExchange,
presentationSubmission: responseOpts.presentationExchange.presentationSubmission ?? authorizationResponsePayload.presentation_submission,
presentationSubmission: responseOpts.presentationExchange?.presentationSubmission ?? authorizationResponsePayload.presentation_submission,
hasher: verifyOpts.hasher,
},
});
Expand Down

0 comments on commit a026323

Please sign in to comment.