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

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 ", "");
}