Refactor by adding extension FindPayoutHandler (#2984)

This commit is contained in:
Nicolas Dorier
2021-10-18 15:00:38 +09:00
committed by GitHub
parent cf206e64a7
commit 262798d577
9 changed files with 23 additions and 12 deletions

View File

@@ -198,7 +198,7 @@ namespace BTCPayServer.Controllers
// TODO: What if no option?
var refund = new RefundModel();
refund.Title = "Select a payment method";
refund.AvailablePaymentMethods = new SelectList(options.Select(id => new SelectListItem(id.ToPrettyString(), id.ToString())));
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();
// Nothing to select, skip to next