mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 18:06:08 +01:00
POS: Fix null pointer
Introduced in #4307, the referenced object needs to be `itemChoice` instead of `choice`.
This commit is contained in:
parent
eda0f7327e
commit
850c26dc13
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue