From c0d8ff7166fa7d452b0774e21c9c1ede45bda2d4 Mon Sep 17 00:00:00 2001 From: Karim El Jazzar <122301442+JazzarKarim@users.noreply.github.com> Date: Wed, 5 Jun 2024 09:58:15 -0700 Subject: [PATCH] 21439 - Fixed Unknown Name when registration is in draft (#661) --- package-lock.json | 4 ++-- package.json | 2 +- src/stores/businessStore.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0aed64132..706fa4ecb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-filings-ui", - "version": "7.2.9", + "version": "7.2.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-filings-ui", - "version": "7.2.9", + "version": "7.2.10", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/base-address": "2.0.9", diff --git a/package.json b/package.json index b8f383ec5..bf2547b77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-filings-ui", - "version": "7.2.9", + "version": "7.2.10", "private": true, "appName": "Filings UI", "sbcName": "SBC Common Components", diff --git a/src/stores/businessStore.ts b/src/stores/businessStore.ts index c86ffc927..664ebc663 100644 --- a/src/stores/businessStore.ts +++ b/src/stores/businessStore.ts @@ -93,10 +93,12 @@ export const useBusinessStore = defineStore('business', { /** The legal name or alternate name if is firm. */ getLegalName (state: BusinessStateIF): string { + const rootStore = useRootStore() + if (!GetFeatureFlag('enable-legal-name-fix')) { return state.businessInfo.legalName } - if (this.isFirm) { + if (this.isFirm && !rootStore.isDraftRegistration) { return this.getAlternateName } else { return state.businessInfo.legalName