mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-16 04:17:20 +00:00
Merge pull request #2131 from aftermath2/external_pix_orders_icon
Ignore case differences during payment methods icon matching
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}\\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, '');
|
customMethods = customMethods.replace(regex, '');
|
||||||
rows.push(
|
rows.push(
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
Reference in New Issue
Block a user