From 61bbebcafa744e8a666da0434a9f7ac6448b19f2 Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Wed, 4 Sep 2024 11:31:22 -0700 Subject: [PATCH] fix(fe:FSADT1-1490): Issue when trying to save an unregistered client with BCeID --- .../src/pages/bceidform/BusinessInformationWizardStep.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/pages/bceidform/BusinessInformationWizardStep.vue b/frontend/src/pages/bceidform/BusinessInformationWizardStep.vue index 8f8db65963..149db69e2e 100644 --- a/frontend/src/pages/bceidform/BusinessInformationWizardStep.vue +++ b/frontend/src/pages/bceidform/BusinessInformationWizardStep.vue @@ -11,6 +11,7 @@ import { useFocus } from "@/composables/useFocus"; import { BusinessSearchResult, ClientTypeEnum, + LegalTypeEnum, ProgressNotification, } from "@/dto/CommonTypesDto"; import { BusinessTypeEnum, CodeNameType } from "@/dto/CommonTypesDto"; @@ -344,6 +345,11 @@ watch([selectedOption], () => { ClientTypeEnum, ClientTypeEnum.USP ); + formData.value.businessInformation.legalType = getEnumKeyByEnumValue( + LegalTypeEnum, + LegalTypeEnum.SP + ); + formData.value.businessInformation.businessName = ForestClientUserSession .user?.businessName ? ForestClientUserSession.user?.businessName