1
0
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:
2022-02-25 19:52:46 +00:00
parent 3b5b9f7d88
commit 0ac1b1bb73

View File

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