diff options
Diffstat (limited to 'extension/lib/commonHelpers.ts')
-rw-r--r-- | extension/lib/commonHelpers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/lib/commonHelpers.ts b/extension/lib/commonHelpers.ts index 5c32e47c1..4974778b9 100644 --- a/extension/lib/commonHelpers.ts +++ b/extension/lib/commonHelpers.ts @@ -14,12 +14,12 @@ TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> */ -Handlebars.registerHelper('prettyAmount', function (amount) { +Handlebars.registerHelper("prettyAmount", function (amount) { let v = amount.value + amount.fraction / 1e6; - return v.toFixed(2) + " " + amount.currency; + return `${v.toFixed(2)} ${amount.currency}`; }); -Handlebars.registerHelper('prettyAmountNoCurrency', function (amount) { +Handlebars.registerHelper("prettyAmountNoCurrency", function (amount) { let v = amount.value + amount.fraction / 1e6; return v.toFixed(2); }); |