Skip to content

Commit 5c96a1f

Browse files
committed
AC-13814:Paypal Pay Later messgae is not displayed on cart page
1 parent 60521f5 commit 5c96a1f

File tree

1 file changed

+3
-4
lines changed
  • app/code/Magento/Paypal/view/frontend/web/js/view

1 file changed

+3
-4
lines changed

app/code/Magento/Paypal/view/frontend/web/js/view/paylater.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,14 @@ define([
4747
* @returns {*}
4848
*/
4949
initialize: function () {
50-
let customer = customerData.get('customer');
51-
let buyerCountry = customerData.get('paypal-buyer-country');
50+
let customer = customerData.get('customer'),
51+
buyerCountry = customerData.get('paypal-buyer-country');
5252

5353
this.buyerCountry = buyerCountry().code;
5454

5555
if (customer().firstname && !this.buyerCountry) {
5656
customerData.reload(['paypal-buyer-country'], false);
57-
buyerCountry = customerData.get('paypal-buyer-country');
58-
this.buyerCountry = buyerCountry().code;
57+
this.buyerCountry = customerData.get('paypal-buyer-country')().code;
5958
}
6059

6160
this._super()

0 commit comments

Comments
 (0)