mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Fix receipts for Lightning Address invoices
`AdditionalData` needs to be null-checked, because it isn't set for invoices generated via Lightning Address. Fixes #4169.
This commit is contained in:
parent
30f83d8f3f
commit
8155841a1d
@ -176,7 +176,7 @@ namespace BTCPayServer.Controllers
|
||||
});
|
||||
}
|
||||
JToken? receiptData = null;
|
||||
i.Metadata?.AdditionalData.TryGetValue("receiptData", out receiptData);
|
||||
i.Metadata?.AdditionalData?.TryGetValue("receiptData", out receiptData);
|
||||
|
||||
return View(new InvoiceReceiptViewModel
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user