mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 17:59: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.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)
|
||||
|
||||
Reference in New Issue
Block a user