Skip to content

Commit

Permalink
removed fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim committed Apr 22, 2024
1 parent a7bab5f commit eb1c16a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,14 @@ export const useStore = defineStore('store', {

/** The original legal name (or alternate name if this is a firm). */
getOriginalLegalName (): string {
if (!GetFeatureFlag('enable-legal-name-fix')) return this.getOriginalBusinessInfo?.legalName || ''
if (!GetFeatureFlag('enable-legal-name-fix')) return this.getOriginalBusinessInfo?.legalName
if (this.isFirm) {
// return the alternate name, if it exists
const alternateNames = this.getOriginalBusinessInfo?.alternateNames || []
const alternateName = alternateNames.find(x => x.identifier === this.getBusinessId)
return alternateName?.name || 'Unknown'
}
return this.getOriginalBusinessInfo?.legalName || ''
return this.getOriginalBusinessInfo?.legalName
},

/** The appropriate edit label for corrections, alterations, change or conversion filings. */
Expand Down

0 comments on commit eb1c16a

Please sign in to comment.