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([
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 ( )
You can’t perform that action at this time.
0 commit comments