diff --git a/src/components/text-counter.js b/src/components/text-counter.js index e777448..c1f4b6f 100644 --- a/src/components/text-counter.js +++ b/src/components/text-counter.js @@ -20,7 +20,7 @@ AFRAME.registerComponent('text-counter', { update: function (oldData) { this.currentValue = 0; - this.textValue.value = `${this.data.prefix} ${this.decimals(0)} ${this.data.suffix}`; + this.textValue.value = `${this.data.prefix}${this.decimals(0)}${this.data.suffix}`; this.el.setAttribute('text', this.textValue); }, @@ -35,7 +35,7 @@ AFRAME.registerComponent('text-counter', { } this.textValue.value = - `${this.data.prefix} ${this.decimals(this.currentValue)} ${this.data.suffix}`; + `${this.data.prefix}${this.decimals(this.currentValue)}${this.data.suffix}`; this.el.setAttribute('text', this.textValue); },