diff --git a/frontend/src/components/PaymentMethods/StringAsIcons.tsx b/frontend/src/components/PaymentMethods/StringAsIcons.tsx index ac70ad02..b5e16ba7 100644 --- a/frontend/src/components/PaymentMethods/StringAsIcons.tsx +++ b/frontend/src/components/PaymentMethods/StringAsIcons.tsx @@ -33,9 +33,9 @@ const StringAsIcons: React.FC = ({ // 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(