Skip to content

Commit

Permalink
17917 Added placeholder for null values (#572)
Browse files Browse the repository at this point in the history
Updated Version
  • Loading branch information
jamespaologarcia authored Nov 8, 2023
1 parent 8966754 commit cb86797
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 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.0.4",
"version": "7.0.5",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
8 changes: 3 additions & 5 deletions src/components/common/NameRequestInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,9 @@ export default class NameRequestInfo extends Mixins(DateMixin, EnumMixin, NameRe
/** The applicant's name. */
get applicantName (): string {
let name: string
if (this.applicant?.middleName) {
name = `${this.applicant?.firstName} ${this.applicant?.middleName} ${this.applicant?.lastName}`
} else {
name = `${this.applicant?.firstName} ${this.applicant?.lastName}`
}
const firstName = this.applicant?.firstName ? this.applicant.firstName + ' ' : ''
const middleName = this.applicant?.middleName ? this.applicant.middleName + ' ' : ''
name = `${firstName}${middleName}${this.applicant?.lastName}`
return name
}
Expand Down

0 comments on commit cb86797

Please sign in to comment.