mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-09 08:14:21 +01:00
POS: Fix null pointer
Introduced in #4307, the referenced object needs to be `itemChoice` instead of `choice`.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user