Skip to content

Commit f82c06c

Browse files
MC-33743: Product page PayPal button adds 2 products to cart
1 parent 9003f2b commit f82c06c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Paypal/view/frontend/web/js/in-context/product-express-checkout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,19 @@ define([
107107
/** @inheritdoc */
108108
onError: function (err) {
109109
this.productAddedToCart = false;
110-
this._super();
110+
this._super(err);
111111
},
112112

113113
/** @inheritdoc */
114114
onCancel: function (data, actions) {
115115
this.productAddedToCart = false;
116-
this._super();
116+
this._super(data, actions);
117117
},
118118

119119
/** @inheritdoc */
120120
afterOnAuthorize: function (res, resolve, reject, actions) {
121121
this.productAddedToCart = false;
122-
this._super();
122+
this._super(res, resolve, reject, actions);
123123
}
124124
});
125125
});

0 commit comments

Comments
 (0)