From 22ce9a41d68e26b9a69680b64f785ddc4d27b1b1 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 10 Aug 2025 11:24:06 +0200 Subject: [PATCH] Fix payment methods icon --- frontend/src/components/PaymentMethods/StringAsIcons.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/PaymentMethods/StringAsIcons.tsx b/frontend/src/components/PaymentMethods/StringAsIcons.tsx index b5e16ba7..ac70ad02 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.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, ''); rows.push(