use more concrete types for price type in app items

This commit is contained in:
Kukks
2021-10-11 12:46:05 +02:00
committed by Andrew Camilleri
parent 33a893ba31
commit 9592a77cff
11 changed files with 135 additions and 53 deletions

View File

@@ -146,7 +146,7 @@ namespace BTCPayServer.Controllers
if (choice == null)
return NotFound();
title = choice.Title;
if (choice.Custom == "topup")
if (choice.Price.Type == ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Topup)
{
price = null;
}
@@ -323,7 +323,7 @@ namespace BTCPayServer.Controllers
return NotFound("Incorrect option provided");
title = choice.Title;
if (choice.Custom == "topup")
if (choice.Price.Type == ViewPointOfSaleViewModel.Item.ItemPrice.ItemPriceType.Topup)
{
price = null;
}