Fix keypad view broken by previous commit

This commit is contained in:
nicolas.dorier 2023-06-16 23:18:47 +09:00
parent d8c0e5bf3a
commit 76faf77a1c
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -199,13 +199,13 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
if (!settings.ShowCustomAmount && currentView != PosViewType.Cart && currentView != PosViewType.Light)
return NotFound();
price = 0.0m;
title = settings.Title;
//if cart IS enabled and we detect posdata that matches the cart system's, check inventory for the items
if (currentView == PosViewType.Cart &&
AppService.TryParsePosCartItems(jposData, out cartItems))
{
price = 0.0m;
choices = AppService.Parse(settings.Template, false);
foreach (var cartItem in cartItems)
{