mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
fix null instance on invoice when using paymentCurrencies (#1766)
fixes #1765
This commit is contained in:
parent
df413d1af0
commit
310f6a385c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue