You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the file adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js, the function displayValidationErrors() uses the following logic:
function displayValidationErrors() {
if (store.selectedMethod?.node) {
store.selectedPayment.node.showValidation();
}
return false;
}
However, according to the store's implementation in adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/store/index.js, the selectedMethod object does not contain a node attribute. The relevant part of the store's definition is:
class Store {
@observable selectedMethod;
@computed get selectedPayment() {
return this.componentsObj[this.selectedMethod];
}
}
Expected Behavior
The function displayValidationErrors() should correctly reference the appropriate attribute for the validation process. It seems that there is a misunderstanding of how selectedMethod and selectedPayment are structured, and it needs to be corrected to avoid referencing a non-existent node.
Additional Information
The issue is present in:
adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js
adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/store/index.js
maybe other files are also affected
The text was updated successfully, but these errors were encountered:
In the file adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js, the function displayValidationErrors() uses the following logic:
However, according to the store's implementation in adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/store/index.js, the selectedMethod object does not contain a node attribute. The relevant part of the store's definition is:
Expected Behavior
The function displayValidationErrors() should correctly reference the appropriate attribute for the validation process. It seems that there is a misunderstanding of how selectedMethod and selectedPayment are structured, and it needs to be corrected to avoid referencing a non-existent node.
Additional Information
The issue is present in:
adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js
adyen-salesforce-commerce-cloud/src/cartridges/app_adyen_SFRA/cartridge/store/index.js
maybe other files are also affected
The text was updated successfully, but these errors were encountered: