Skip to content

Commit 40585f4

Browse files
committed
MC-42968::Fixed Automation Failed Static Tests
1 parent 6ab287a commit 40585f4

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Paypal/view/frontend/web/js/in-context

1 file changed

+1
-1
lines changed

app/code/Magento/Paypal/view/frontend/web/js/in-context/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ define([
2222

2323
this._super();
2424
this.renderPayPalButtons(element);
25-
this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
2625

2726
if (cart().isGuestCheckoutAllowed === undefined) {
2827
cart.subscribe(function (updatedCart) {
2928
this.declinePayment = !customer().firstname && !cart().isGuestCheckoutAllowed;
29+
3030
return updatedCart;
3131
}.bind(this));
3232
}

0 commit comments

Comments
 (0)