Skip to content

Commit 4f0d50b

Browse files
Update sample-apps/payment-customizations/extensions/payment-customization-js/src/index.js
Co-authored-by: Andrew Hassan <andrewihassan@gmail.com>
1 parent 2906a13 commit 4f0d50b

File tree

1 file changed

+1
-1
lines changed
  • sample-apps/payment-customizations/extensions/payment-customization-js/src

1 file changed

+1
-1
lines changed

sample-apps/payment-customizations/extensions/payment-customization-js/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default /**
3535
}
3636

3737
const hidePaymentMethod = input.paymentMethods
38-
.find(method => method.name.indexOf(configuration.paymentMethodName) != -1);
38+
.find(method => method.name.includes(configuration.paymentMethodName));
3939

4040
if (!hidePaymentMethod) {
4141
return NO_CHANGES;

0 commit comments

Comments
 (0)