diff --git a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs index 6b1f78e65..2ed29b23e 100644 --- a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs +++ b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs @@ -292,13 +292,13 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers } var amtField = form.GetFieldByFullName($"{FormDataService.InvoiceParameterPrefix}amount"); - if (amtField is null && price.HasValue) + if (amtField is null) { form.Fields.Add(new Field { Name = $"{FormDataService.InvoiceParameterPrefix}amount", Type = "hidden", - Value = price.ToString(), + Value = price?.ToString(), Constant = true }); }