Merge pull request #4327 from btcpayserver/dennisreimann-patch-1

This commit is contained in:
Andrew Camilleri 2022-11-22 06:58:10 +01:00 committed by GitHub
commit bd3710a60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,9 +200,9 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
}
decimal expectedCartItemPrice = 0;
if (choice.Price.Type != ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Topup)
if (itemChoice.Price.Type != ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Topup)
{
expectedCartItemPrice = choice.Price.Value ?? 0;
expectedCartItemPrice = itemChoice.Price.Value ?? 0;
}
expectedMinimumAmount += expectedCartItemPrice * cartItem.Value;