diff --git a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml index c879070b6..9b99274d4 100644 --- a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml @@ -329,9 +329,11 @@ {{perk.price.value.noExponents()}} {{targetCurrency}} - or more + or more - + + {{}} + Any amount @@ -340,9 +342,9 @@ - {{targetCurrency}} + {{targetCurrency}} 0) + return !this.expanded && this.active && (this.perk.price.type !== 2 || this.perk.price.value) && (this.perk.inventory==null || this.perk.inventory > 0) } }, methods: { @@ -45,7 +45,7 @@ document.addEventListener("DOMContentLoaded",function (ev) { } }, setAmount: function (amount) { - this.amount = this.perk.custom === "topup"? null : (amount || 0).noExponents(); + this.amount = this.perk.price.type === 0? null : (amount || 0).noExponents(); this.expanded = false; } @@ -56,7 +56,7 @@ document.addEventListener("DOMContentLoaded",function (ev) { }, watch: { perk: function (newValue, oldValue) { - if(newValue.custom === "topup"){ + if(newValue.price.type ===0){ this.setAmount(); }else if (newValue.price.value != oldValue.price.value) { this.setAmount(newValue.price.value);