Skip to content

Commit

Permalink
handle credentialTypes === undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
leoniefritsch committed Sep 12, 2024
1 parent 1568628 commit b7b59b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/PresentationRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ export default {
"input_descriptors": [
]
}
if (this.composeTypesWithOr) {
if (this.credentialTypes === undefined) {
getInputDescriptor([])
}
else if (this.composeTypesWithOr) {
definition.input_descriptors.push(
getInputDescriptor(this.credentialTypes.join("|"))
);
Expand Down

0 comments on commit b7b59b6

Please sign in to comment.