From 3f86c9cf8dc21e0d1b0ba606f9d31d363e00c701 Mon Sep 17 00:00:00 2001 From: Hrvoje Fekete Date: Tue, 10 Dec 2024 10:19:37 -0800 Subject: [PATCH] 24817 - fix: wrong redirect; missing start date for filings. (#107) * 24817 - fix: wrong redirect; missing start date for filngs. * chore: remove comment. --- src/components/bcros/businessDetails/Links.vue | 8 ++++++-- src/stores/filings.ts | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/bcros/businessDetails/Links.vue b/src/components/bcros/businessDetails/Links.vue index 6252765..fb1382d 100644 --- a/src/components/bcros/businessDetails/Links.vue +++ b/src/components/bcros/businessDetails/Links.vue @@ -168,7 +168,11 @@ const dissolveBusiness = async (): Promise => { console.error('Filing error no filingId') reject(new Error('Failed to create filing')) } - goToCreatePage('/dissolution-define-dissolution', { id: currentBusiness.value.identifier }) + if (isFirm.value) { + goToCreatePage('/define-dissolution', { id: currentBusiness.value.identifier }) + } else { + goToCreatePage('/dissolution-define-dissolution', { id: currentBusiness.value.identifier }) + } resolve() } }) @@ -278,7 +282,7 @@ const contacts = getContactInfo('registries') - {{ $t('label.comments.comment', (comments?.length || 0 )) }} + {{ $t('label.comments.comment', (comments?.length || 0)) }} diff --git a/src/stores/filings.ts b/src/stores/filings.ts index 2cb70a3..9ce4c6a 100644 --- a/src/stores/filings.ts +++ b/src/stores/filings.ts @@ -104,6 +104,7 @@ export const useBcrosFilings = defineStore('bcros/filings', () => { identifier: business.identifier, legalType: business.legalType, legalName: business.legalName, + startDate: business.startDate, foundingDate: business.foundingDate } }