Skip to content

Commit 9b9ec82

Browse files
authored
Merge pull request #2159 from RoboSats/fix-payment-methods-icon
Fix payment methods icon
2 parents 8791135 + 22ce9a4 commit 9b9ec82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/PaymentMethods/StringAsIcons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const StringAsIcons: React.FC<StringAsIconsProps> = ({
3333

3434
// Adds icons for each PaymentMethod that matches
3535
methods.forEach((method, i) => {
36-
const regex = new RegExp(`\\b${method.name.toLowerCase()}\\b`, 'g');
36+
const regex = new RegExp(`\\b${method.name}\\b`, 'g');
3737

38-
if (regex.test(customMethods.toLowerCase())) {
38+
if (regex.test(customMethods)) {
3939
customMethods = customMethods.replace(regex, '');
4040
rows.push(
4141
<Tooltip

0 commit comments

Comments
 (0)