From 0ac1b1bb733c45752eec2cadce76b4341d227bfc Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 25 Feb 2022 19:52:46 +0000 Subject: [PATCH] Fixed bug where handlebars can't access getters --- lib/User.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)