Skip to content

Commit cf5718f

Browse files
fix missing files for boostrap incorporation filing (#89)
* fix missing files for boostrap incorporation filing * fix
1 parent f6f566d commit cf5718f

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

src/components/bcros/businessDetails/Status.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<script setup lang="ts">
2-
import { CorpTypeCd, FilingTypes } from '@bcrs-shared-components/enums'
2+
import { FilingTypes } from '@bcrs-shared-components/enums'
33
44
const t = useNuxtApp().$i18n.t
55
const {
66
currentBusiness,
77
currentBusinessIdentifier,
88
stateFiling,
9-
isInLimitedRestoration
9+
isInLimitedRestoration,
10+
isFirm
1011
} = storeToRefs(useBcrosBusiness())
1112
1213
const { isAuthorizedToContinueOut } = storeToRefs(useBcrosFilings())
@@ -32,8 +33,6 @@ const getReasonText = computed(() => {
3233
// reason for dissolution
3334
if (filingType === FilingTypes.DISSOLUTION) {
3435
let reason = t('filing.name.unknown')
35-
const isFirm = currentBusiness.value.legalType === CorpTypeCd.SOLE_PROP ||
36-
currentBusiness.value.legalType === CorpTypeCd.PARTNERSHIP
3736
3837
const subType = stateFiling.value?.dissolution?.dissolutionType as FilingSubTypeE
3938
switch (subType) {

src/components/bcros/filing/common/futureEffective/Paid.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<span v-else-if="isTypeDissolutionVoluntary">{{ $t('text.filing.futureEffectiveDissolution') }}</span>
77
<span v-else>{{ $t('text.filing.futureEffectiveFiling') }}</span>
88
<span>
9-
{{ $t('text.filing.paid') }}
9+
{{ ' ' + $t('text.filing.paid') }}
1010
</span>
1111
<BcrosDivider class="mx-2" />
1212
<BcrosFilingCommonFiledLabel :filing="filing" />

src/stores/business.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ export const useBcrosBusiness = defineStore('bcros/business', () => {
217217

218218
//
219219
const isFirm = computed(() => {
220-
return currentBusiness.value.legalType === CorpTypeCd.SOLE_PROP ||
221-
currentBusiness.value.legalType === CorpTypeCd.PARTNERSHIP
220+
return currentBusiness?.value?.legalType === CorpTypeCd.SOLE_PROP ||
221+
currentBusiness?.value?.legalType === CorpTypeCd.PARTNERSHIP
222222
})
223223

224224
// business statesFiling

src/stores/filings.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ export const useBcrosFilings = defineStore('bcros/filings', () => {
127127
filings.value = [{
128128
availableOnPaperOnly: header.availableOnPaperOnly,
129129
businessIdentifier: bootstrapFiling.filing.business.identifier,
130-
commentsCount: header.commentsCount,
131-
commentsLink: header.commentsLink,
130+
commentsCount: header.commentsCount || bootstrapFiling.commentsCount,
131+
commentsLink: header.commentsLink || bootstrapFiling.commentsLink,
132132
displayLedger: bootstrapFiling.displayLedger,
133133
displayName,
134-
documentsLink: header.documentsLink,
134+
documentsLink: header.documentsLink || bootstrapFiling.documentsLink,
135135
effectiveDate: apiToUtcString(header.effectiveDate),
136136
filingId: header.filingId,
137-
filingLink: header.filingLink,
137+
filingLink: header.filingLink || bootstrapFiling.filingLink,
138138
filingSubType: data.type,
139139
isFutureEffective: header.isFutureEffective,
140140
name: header.name,

0 commit comments

Comments
 (0)