mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix crash if impossible to get the network of a payment
This commit is contained in:
@@ -144,6 +144,7 @@ namespace BTCPayServer.Controllers
|
||||
.Select(o => new PaymentMethodId(o, PaymentTypes.BTCLike))
|
||||
.ToList();
|
||||
var defaultRefund = invoice.Payments.Select(p => p.GetBlob(_NetworkProvider))
|
||||
.Where(p => p != null)
|
||||
.Select(p => p.GetPaymentMethodId().CryptoCode)
|
||||
.FirstOrDefault();
|
||||
// TODO: What if no option?
|
||||
|
||||
Reference in New Issue
Block a user