From ffe6dee6aa50c864cc9a36e816eb95f2f23719b1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 11 Jan 2016 02:56:32 +0100 Subject: refactor code to be clearer/prettier --- extension/lib/commonHelpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extension/lib/commonHelpers.ts') 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 */ -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); }); -- cgit v1.2.3