diff --git a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs index 70c9cc651..1fa89bbe1 100644 --- a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs +++ b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs @@ -356,7 +356,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers meta.Merge(formResponseJObject); entity.Metadata = InvoiceMetadata.FromJObject(meta); }); - if (price is 0 && storeBlob.ReceiptOptions.Enabled is true) + if (price is 0 && storeBlob.ReceiptOptions?.Enabled is true) { return RedirectToAction(nameof(UIInvoiceController.InvoiceReceipt), "UIInvoice", new { invoiceId = invoice.Data.Id }); } diff --git a/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml b/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml index fd4a3b69d..20ac2663f 100644 --- a/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml +++ b/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml @@ -23,13 +23,14 @@ @if (isProcessing) { - - }else if (isFreeInvoice) + } + else if (isFreeInvoice) { - }