We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 780f9a0 + 40585f4 commit 11217d3Copy full SHA for 11217d3
app/code/Magento/Paypal/view/frontend/web/js/in-context/button.js
@@ -22,7 +22,14 @@ define([
22
23
this._super();
24
this.renderPayPalButtons(element);
25
- this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
+
26
+ if (cart().isGuestCheckoutAllowed === undefined) {
27
+ cart.subscribe(function (updatedCart) {
28
+ this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
29
30
+ return updatedCart;
31
+ }.bind(this));
32
+ }
33
34
return this;
35
},
0 commit comments