1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 19:59:27 +00:00

Fix error when otherNames is undefined

This commit is contained in:
2022-02-14 20:54:19 +00:00
parent c85166a7a0
commit 7bd34f3312

View File

@@ -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;