File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/Paypal/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,14 @@ define([
47
47
* @returns {* }
48
48
*/
49
49
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' ) ;
52
52
53
53
this . buyerCountry = buyerCountry ( ) . code ;
54
54
55
55
if ( customer ( ) . firstname && ! this . buyerCountry ) {
56
56
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 ;
59
58
}
60
59
61
60
this . _super ( )
You can’t perform that action at this time.
0 commit comments