From b7b59b69ff65729d6bb7e356ab09be72e8a6458c Mon Sep 17 00:00:00 2001 From: Leonie Fritsch Date: Thu, 12 Sep 2024 10:30:09 +0200 Subject: [PATCH 1/2] handle credentialTypes === undefined --- frontend/src/components/PresentationRequest.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/PresentationRequest.vue b/frontend/src/components/PresentationRequest.vue index a099bc3..44a0fa2 100644 --- a/frontend/src/components/PresentationRequest.vue +++ b/frontend/src/components/PresentationRequest.vue @@ -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("|")) ); From 9129b0ffedec4d9cd7fde3e47f79e9b5910875d2 Mon Sep 17 00:00:00 2001 From: Leonie Fritsch Date: Thu, 12 Sep 2024 11:06:25 +0200 Subject: [PATCH 2/2] push input descriptor --- frontend/src/components/PresentationRequest.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/PresentationRequest.vue b/frontend/src/components/PresentationRequest.vue index 44a0fa2..ad21b78 100644 --- a/frontend/src/components/PresentationRequest.vue +++ b/frontend/src/components/PresentationRequest.vue @@ -114,9 +114,10 @@ export default { ] } if (this.credentialTypes === undefined) { - getInputDescriptor([]) - } - else if (this.composeTypesWithOr) { + definition.input_descriptors.push( + getInputDescriptor("") + ); + } else if (this.composeTypesWithOr) { definition.input_descriptors.push( getInputDescriptor(this.credentialTypes.join("|")) );