mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 18:19:25 +00:00
Fixed bug where handlebars can't access getters
This commit is contained in:
@@ -59,6 +59,7 @@ class User {
|
|||||||
this[k] = v;
|
this[k] = v;
|
||||||
|
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
this.fullName = this.getFullName();
|
||||||
|
|
||||||
if (knownType)
|
if (knownType)
|
||||||
return this;
|
return this;
|
||||||
@@ -72,7 +73,7 @@ class User {
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
get fullName() {
|
getFullName() {
|
||||||
let name = `${this.firstName} `;
|
let name = `${this.firstName} `;
|
||||||
|
|
||||||
if (this?.otherNames?.length > 0)
|
if (this?.otherNames?.length > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user