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,