Skip to content

Commit

Permalink
21439 - Fixed Unknown Name when registration is in draft (bcgov#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim authored Jun 5, 2024
1 parent 0796759 commit c0d8ff7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/stores/businessStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0d8ff7

Please sign in to comment.