From 0e1a6a3d5fe92ba3a085a425fa796b2b0cb8e07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A4=20Bu?= <87422685+fabu21@users.noreply.github.com> Date: Tue, 2 Nov 2021 21:02:33 +0100 Subject: [PATCH] Bugfix #3049: Price type of edit item in PoS shows only "fixed" (#3052) --- BTCPayServer/Views/Apps/TemplateEditor.cshtml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BTCPayServer/Views/Apps/TemplateEditor.cshtml b/BTCPayServer/Views/Apps/TemplateEditor.cshtml index 6d0386ba9..c91c1c22d 100644 --- a/BTCPayServer/Views/Apps/TemplateEditor.cshtml +++ b/BTCPayServer/Views/Apps/TemplateEditor.cshtml @@ -210,8 +210,6 @@ document.addEventListener("DOMContentLoaded", function () { } if (productProperty.indexOf('price_type:') !== -1) { custom = productProperty.replace('price_type:', '').trim(); - }else{ - custom = "fixed"; } if (productProperty.indexOf('buyButtonText:') !== -1) { buyButtonText = productProperty.replace('buyButtonText:', '').trim(); @@ -235,7 +233,7 @@ document.addEventListener("DOMContentLoaded", function () { price: price, image: image || null, description: description || '', - custom: custom, + custom: custom || "fixed", buyButtonText: buyButtonText, inventory: isNaN(inventory)? null: inventory, paymentMethods: paymentMethods,