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