mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Bitcoin always first selection in currency list
This commit is contained in:
parent
3cefbc89e4
commit
65916755b6
@ -295,7 +295,7 @@ namespace BTCPayServer.Controllers
|
||||
CryptoImage = GetImage(kv.GetId(), kv.Network),
|
||||
Link = Url.Action(nameof(Checkout), new { invoiceId = invoiceId, paymentMethodId = kv.GetId().ToString() })
|
||||
}).Where(c => c.CryptoImage != "/")
|
||||
.OrderBy(a => a.PaymentMethodName).ThenBy(a => a.LightningLike ? 1 : 0)
|
||||
.OrderByDescending(a => a.CryptoCode == "BTC").ThenBy(a => a.PaymentMethodName).ThenBy(a => a.LightningLike ? 1 : 0)
|
||||
.ToList()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user