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.
1 parent 6ab287a commit 40585f4Copy full SHA for 40585f4
app/code/Magento/Paypal/view/frontend/web/js/in-context/button.js
@@ -22,11 +22,11 @@ define([
22
23
this._super();
24
this.renderPayPalButtons(element);
25
- this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
26
27
if (cart().isGuestCheckoutAllowed === undefined) {
28
cart.subscribe(function (updatedCart) {
29
this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
+
30
return updatedCart;
31
}.bind(this));
32
}
0 commit comments