From d181375479d1781d7799fa482cba01f993680da7 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 21 Jan 2019 10:54:30 +0100 Subject: [PATCH] Consistent number formatting in widget --- src/pretix/static/pretixpresale/js/widget/widget.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 6edb68616..15d00873e 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -214,13 +214,13 @@ Vue.component('pricebox', { computed: { display_price: function () { if (this.$root.display_net_prices) { - return roundTo(parseFloat(this.price.net), 2).toFixed(2); + return floatformat(parseFloat(this.price.net), 2); } else { - return roundTo(parseFloat(this.price.gross), 2).toFixed(2); + return floatformat(parseFloat(this.price.gross), 2); } }, original_line: function () { - return this.$root.currency + " " + roundTo(parseFloat(this.original_price), 2).toFixed(2); + return this.$root.currency + " " + floatformat(parseFloat(this.original_price), 2); }, priceline: function () { if (this.price.gross === "0.00") {