Checkout v2: Reduce Altcoin name on payment method pill (#4456)

Closes #4455.
This commit is contained in:
d11n 2022-12-19 08:06:43 +01:00 committed by GitHub
parent 674d5bae8a
commit 3a2ad48bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@
private string PaymentMethodName(PaymentModel.AvailableCrypto pm)
{
return Model.AltcoinsBuild
? $"{pm.PaymentMethodName} {pm.CryptoCode}"
? pm.PaymentMethodName
: pm.PaymentMethodName.Replace("Bitcoin (", "").Replace(")", "").Replace("Lightning ", "");
}