mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
fix null instance on invoice when using paymentCurrencies (#1766)
fixes #1765
This commit is contained in:
parent
df413d1af0
commit
310f6a385c
@ -138,6 +138,8 @@ namespace BTCPayServer.Controllers
|
||||
|
||||
if (invoice.PaymentCurrencies?.Any() is true)
|
||||
{
|
||||
invoice.SupportedTransactionCurrencies ??=
|
||||
new Dictionary<string, InvoiceSupportedTransactionCurrency>();
|
||||
foreach (string paymentCurrency in invoice.PaymentCurrencies)
|
||||
{
|
||||
invoice.SupportedTransactionCurrencies.TryAdd(paymentCurrency,
|
||||
|
Loading…
Reference in New Issue
Block a user