File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app/code/Magento/QuoteGraphQl/Model/Cart Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,7 @@ private function createShippingAddress(
98
98
$ shippingAddress = $ this ->quoteAddressFactory ->createBasedOnInputData ($ addressInput );
99
99
100
100
// need to save address only for registered user and if save_in_address_book = true
101
- if (
102
- 0 !== $ customerId
101
+ if (0 !== $ customerId
103
102
&& isset ($ addressInput ['save_in_address_book ' ])
104
103
&& (bool )$ addressInput ['save_in_address_book ' ] === true
105
104
) {
Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ private function createBillingAddress(
113
113
114
114
$ customerId = $ context ->getUserId ();
115
115
// need to save address only for registered user and if save_in_address_book = true
116
- if (
117
- 0 !== $ customerId
116
+ if (0 !== $ customerId
118
117
&& isset ($ addressInput ['save_in_address_book ' ])
119
118
&& (bool )$ addressInput ['save_in_address_book ' ] === true
120
119
) {
You can’t perform that action at this time.
0 commit comments