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