Fix: Lnurl Max is set to min when item type is minmum

fixes #4108
This commit is contained in:
Kukks 2022-09-12 19:05:37 +02:00 committed by Andrew Camilleri
parent 836c676057
commit e334b9162a

View file

@ -409,7 +409,7 @@ namespace BTCPayServer
if (i.Type != InvoiceType.TopUp)
{
min = i.GetPaymentMethod(pmi).Calculate().Due.ToDecimal(MoneyUnit.Satoshi);
max = min;
max = item?.Price?.Type == ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Minimum ? null : min;
}
if (!string.IsNullOrEmpty(username))