We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2906a13 commit 4f0d50bCopy full SHA for 4f0d50b
sample-apps/payment-customizations/extensions/payment-customization-js/src/index.js
@@ -35,7 +35,7 @@ export default /**
35
}
36
37
const hidePaymentMethod = input.paymentMethods
38
- .find(method => method.name.indexOf(configuration.paymentMethodName) != -1);
+ .find(method => method.name.includes(configuration.paymentMethodName));
39
40
if (!hidePaymentMethod) {
41
return NO_CHANGES;
0 commit comments