mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
fix null instance on invoice when using paymentCurrencies (#1766)
fixes #1765
This commit is contained in:
@@ -138,6 +138,8 @@ namespace BTCPayServer.Controllers
|
|||||||
|
|
||||||
if (invoice.PaymentCurrencies?.Any() is true)
|
if (invoice.PaymentCurrencies?.Any() is true)
|
||||||
{
|
{
|
||||||
|
invoice.SupportedTransactionCurrencies ??=
|
||||||
|
new Dictionary<string, InvoiceSupportedTransactionCurrency>();
|
||||||
foreach (string paymentCurrency in invoice.PaymentCurrencies)
|
foreach (string paymentCurrency in invoice.PaymentCurrencies)
|
||||||
{
|
{
|
||||||
invoice.SupportedTransactionCurrencies.TryAdd(paymentCurrency,
|
invoice.SupportedTransactionCurrencies.TryAdd(paymentCurrency,
|
||||||
|
|||||||
Reference in New Issue
Block a user