Bitcoin always first selection in currency list

This commit is contained in:
rockstardev 2018-07-17 23:29:40 -05:00
parent 3cefbc89e4
commit 65916755b6

View File

@ -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()
};