Skip to content

Commit df78f27

Browse files
committed
Minor fix to the update cart
1 parent 5c7af1d commit df78f27

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/OminityApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class OminityApiClient
1818
/**
1919
* Version of our client.
2020
*/
21-
public const CLIENT_VERSION = "1.3.0";
21+
public const CLIENT_VERSION = "1.3.1";
2222

2323
/**
2424
* Endpoint of the remote API.

src/Resources/Commerce/Cart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ public function update()
329329
return $value !== null;
330330
});
331331
}, $this->items),
332-
"billingAddress" => $this->billingAddress ?? null,
333-
"shippingAddress" => $this->shippingAddress ?? null,
332+
"billingAddress" => $this->billingAddress ?? [],
333+
"shippingAddress" => $this->shippingAddress ?? [],
334334
"promotionCodes" => $this->promotionCodes ?? [],
335335
];
336336

0 commit comments

Comments
 (0)