From cb781f42e3db1c2fb51d13e097e7e3f9d55ae03b Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 24 Apr 2023 10:11:32 +0200 Subject: [PATCH] POS: Fix choiceKey case I came across this while debugging #4889. This does not actually fix it, but it fixes an inconsistence in the casing of the parameter name. However, I think the original issue is a caching problem in the browser. I was able to reproduce it on first load, after reloading the page once more it works as intended. The weird thing is: even though the values are correct on first load (verified via debugger), the `choiceKey` for the first item is set incorrectly to an integer value. --- BTCPayServer/Views/Shared/PointOfSale/Public/Static.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Views/Shared/PointOfSale/Public/Static.cshtml b/BTCPayServer/Views/Shared/PointOfSale/Public/Static.cshtml index 75dcf5414..83b564014 100644 --- a/BTCPayServer/Views/Shared/PointOfSale/Public/Static.cshtml +++ b/BTCPayServer/Views/Shared/PointOfSale/Public/Static.cshtml @@ -32,7 +32,7 @@ @if (item.Price.Type != ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Topup) {
- + @{PayFormInputContent(item.BuyButtonText ?? Model.CustomButtonText, item.Price.Type, item.Price.Value, item.Price.Value);}
} @@ -95,8 +95,8 @@ { if (itemPriceType == ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Fixed && priceValue == 0) { -
- +
+
}