Skip to content

Commit

Permalink
Merge pull request #9 from balen/remove-null-badge-name
Browse files Browse the repository at this point in the history
remove spurious 'null' in badge name
  • Loading branch information
balen authored Aug 7, 2024
2 parents d0a9bf7 + 363c170 commit 3678fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/frontend/components/registrants/registrant_sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export default {
if (this.selected.badge){
return this.selected.badge
} else if (this.selected.preferred_name_last || this.selected.preferred_name_first) {
return `${this.selected.preferred_name_first} ${this.selected.preferred_name_last}`
return `${this.selected.preferred_name_first || ''} ${this.selected.preferred_name_last || ''}`.trim()
} else {
return `${this.selected.first_name} ${this.selected.last_name}`
return `${this.selected.first_name || ''} ${this.selected.last_name || ''}`.trim()
}
},
badge_content: function() {
Expand Down

0 comments on commit 3678fc0

Please sign in to comment.