From c7f1f67ee925320c0fd073d7e0f07dfd1bdf7872 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 30 Nov 2017 07:52:17 +0100 Subject: [PATCH] Widget: Fix incorrect duplicate formatting of float, loosing precision --- src/pretix/static/pretixpresale/js/widget/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index d5823ac9e5..27368dc1b2 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -212,7 +212,7 @@ Vue.component('pricebox', { if (this.price.gross === "0.00") { return strings.free; } else { - return this.$root.currency + " " + floatformat(this.display_price, 2); + return this.$root.currency + " " + this.display_price; } }, taxline: function () {