From 529de67052de1d296897e0be86d1a5725c2fd056 Mon Sep 17 00:00:00 2001 From: BrandonSharratt Date: Tue, 3 Dec 2024 13:11:14 -0800 Subject: [PATCH 1/2] fix for missing information on incorp requests --- src/stores/businessBootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/businessBootstrap.ts b/src/stores/businessBootstrap.ts index 78f77180..24b77046 100644 --- a/src/stores/businessBootstrap.ts +++ b/src/stores/businessBootstrap.ts @@ -12,7 +12,7 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap', const isStoreLoading = ref(false) const pendingFilings: Ref = ref([]) const bootstrapIdentifier = computed(() => bootstrapFiling.value?.filing.business.identifier) - const bootstrapLegalType = computed(() => bootstrapFiling.value?.filing.business.legalType) + const bootstrapLegalType = computed(() => bootstrapFiling.value?.filing.business.legalType || bootstrapFiling.value?.filing?.incorporationApplication?.nameRequest?.legalType) const bootstrapFilingType = computed(() => bootstrapFiling.value?.filing.header.name) const bootstrapFilingStatus = computed(() => bootstrapFiling.value?.filing.header.status) const bootstrapNr = computed(() => bootstrapFiling.value?.filing[bootstrapFilingType.value]?.nameRequest) From a1a0dfc44735f998a40b915b7b2f296d054b4bed Mon Sep 17 00:00:00 2001 From: BrandonSharratt Date: Tue, 3 Dec 2024 14:14:35 -0800 Subject: [PATCH 2/2] fix lint --- src/stores/businessBootstrap.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stores/businessBootstrap.ts b/src/stores/businessBootstrap.ts index 24b77046..b22d978f 100644 --- a/src/stores/businessBootstrap.ts +++ b/src/stores/businessBootstrap.ts @@ -12,7 +12,10 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap', const isStoreLoading = ref(false) const pendingFilings: Ref = ref([]) const bootstrapIdentifier = computed(() => bootstrapFiling.value?.filing.business.identifier) - const bootstrapLegalType = computed(() => bootstrapFiling.value?.filing.business.legalType || bootstrapFiling.value?.filing?.incorporationApplication?.nameRequest?.legalType) + const bootstrapLegalType = computed(() => { + return bootstrapFiling.value?.filing.business.legalType || + bootstrapFiling.value?.filing?.incorporationApplication?.nameRequest?.legalType + }) const bootstrapFilingType = computed(() => bootstrapFiling.value?.filing.header.name) const bootstrapFilingStatus = computed(() => bootstrapFiling.value?.filing.header.status) const bootstrapNr = computed(() => bootstrapFiling.value?.filing[bootstrapFilingType.value]?.nameRequest)