mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Fix refund button
This commit is contained in:
parent
707484709a
commit
4c71167535
@ -200,7 +200,7 @@ namespace BTCPayServer.Controllers
|
||||
var refund = new RefundModel();
|
||||
refund.Title = "Select a payment method";
|
||||
refund.AvailablePaymentMethods = new SelectList(options.Select(id => new SelectListItem(id.ToPrettyString(), id.ToString())), "Value", "Text");
|
||||
refund.SelectedPaymentMethod = defaultRefund?.ToString() ?? options.Select(o => o.CryptoCode).First();
|
||||
refund.SelectedPaymentMethod = defaultRefund?.ToString() ?? invoice.GetBlob(_NetworkProvider).GetPaymentMethods().First().GetId().ToString();
|
||||
|
||||
// Nothing to select, skip to next
|
||||
if (refund.AvailablePaymentMethods.Count() == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user