diff --git a/lib/User.js b/lib/User.js index 5598fe8..8ac1f1c 100644 --- a/lib/User.js +++ b/lib/User.js @@ -59,6 +59,7 @@ class User { this[k] = v; this.type = type; + this.fullName = this.getFullName(); if (knownType) return this; @@ -72,7 +73,7 @@ class User { })(); } - get fullName() { + getFullName() { let name = `${this.firstName} `; if (this?.otherNames?.length > 0)