Skip to content

Commit

Permalink
fix(payment): PAYPAL-1720 made initial product details data update if…
Browse files Browse the repository at this point in the history
… the form is valid on page load
  • Loading branch information
serhii-tkachenko committed Oct 12, 2022
1 parent 05e54bc commit e1541a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/theme/common/product-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default class ProductDetails extends ProductDetailsBase {

const $form = $('form[data-cart-item-add]', $scope);

if (!$form[0].checkValidity()) {
if ($form[0].checkValidity()) {
this.updateProductDetailsData();
} else {
this.toggleWalletButtonsVisibility(false);
}

Expand Down

0 comments on commit e1541a3

Please sign in to comment.