mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-11 13:00:04 +00:00
Normalize payment method names
This commit is contained in:
@ -33,9 +33,9 @@ const StringAsIcons: React.FC<StringAsIconsProps> = ({
|
||||
|
||||
// Adds icons for each PaymentMethod that matches
|
||||
methods.forEach((method, i) => {
|
||||
const regex = new RegExp(`\\b${method.name}\\b`, 'g');
|
||||
const regex = new RegExp(`\\b${method.name.toLowerCase()}\\b`, 'g');
|
||||
|
||||
if (regex.test(customMethods)) {
|
||||
if (regex.test(customMethods.toLowerCase())) {
|
||||
customMethods = customMethods.replace(regex, '');
|
||||
rows.push(
|
||||
<Tooltip
|
||||
|
Reference in New Issue
Block a user