mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
Remove potential NRE
This commit is contained in:
parent
5b2560ddf7
commit
b470fe22f1
@ -28,7 +28,8 @@
|
||||
|
||||
m.TransactionId = onChainPaymentData.TransactionId;
|
||||
m.ReceivedTime = payment.ReceivedTime;
|
||||
m.TransactionLink = TransactionLinkProviders.GetTransactionLink(m.PaymentMethodId, onChainPaymentData.TransactionId);
|
||||
if (onChainPaymentData.TransactionId != null)
|
||||
m.TransactionLink = TransactionLinkProviders.GetTransactionLink(m.PaymentMethodId, onChainPaymentData.TransactionId);
|
||||
m.Currency = payment.Currency;
|
||||
return m;
|
||||
}).Where(c => c != null).ToList();
|
||||
|
@ -29,7 +29,8 @@
|
||||
|
||||
m.TransactionId = onChainPaymentData.TransactionId;
|
||||
m.ReceivedTime = payment.ReceivedTime;
|
||||
m.TransactionLink = TransactionLinkProviders.GetTransactionLink(m.PaymentMethodId, onChainPaymentData.TransactionId);
|
||||
if (onChainPaymentData.TransactionId != null)
|
||||
m.TransactionLink = TransactionLinkProviders.GetTransactionLink(m.PaymentMethodId, onChainPaymentData.TransactionId);
|
||||
m.Currency = payment.Currency;
|
||||
return m;
|
||||
}).Where(c => c != null).ToList();
|
||||
|
Loading…
Reference in New Issue
Block a user