Skip to content

Commit 2a44e2a

Browse files
Update adyen-cc-method.js
1 parent a100145 commit 2a44e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/web/js/view/payment/method-renderer/adyen-cc-method.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ define(
444444
const methods = paymentMethodsObservable?.()?.paymentMethodsResponse?.paymentMethods;
445445

446446
if (Array.isArray(methods)) {
447-
const schemeMethod = paymentMethodsObservable().paymentMethodsResponse.paymentMethods.find(function (pm) {
447+
const schemeMethod = methods.find(function (pm) {
448448
return pm.type === 'scheme';
449449
});
450450
if (schemeMethod && schemeMethod.name) {

0 commit comments

Comments
 (0)