Skip to content

Commit

Permalink
Guard against missing user
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Aug 15, 2023
1 parent 1895344 commit 509d96e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LetterMixin = {
},
letterSignatureName() {
let name = ''
if (this.user.first_name || this.user.last_name) {
if (this.user && (this.user.first_name || this.user.last_name)) {
name = `${this.user.first_name || ''} ${this.user.last_name || ''}`
}
return name.trim()
Expand Down

0 comments on commit 509d96e

Please sign in to comment.