mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:19:26 +00:00
Fix error when otherNames is undefined
This commit is contained in:
@@ -61,7 +61,7 @@ class User {
|
||||
get fullName() {
|
||||
let name = `${this.firstName} `;
|
||||
|
||||
if (this.otherNames.length > 0)
|
||||
if (this?.otherNames?.length > 0)
|
||||
name += `${this.otherNames} `;
|
||||
|
||||
name += this.lastName;
|
||||
|
||||
Reference in New Issue
Block a user