@faststore/api 2.0.118-alpha.0 → 2.0.140-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ var language = require('graphql/language');
13
13
  var utils = require('@graphql-tools/utils');
14
14
 
15
15
  var name = "@faststore/api";
16
- var version = "2.0.105-alpha.0";
16
+ var version = "2.0.118-alpha.0";
17
17
  var license = "MIT";
18
18
  var main = "dist/index.js";
19
19
  var typings = "dist/index.d.ts";
@@ -158,6 +158,13 @@ const VtexCommerce = ({
158
158
  id,
159
159
  body
160
160
  }) => {
161
+ if (body.selectedAddresses) {
162
+ body.selectedAddresses.forEach(address => {
163
+ if (address.geoCoordinates === null) {
164
+ address.geoCoordinates = [];
165
+ }
166
+ });
167
+ }
161
168
  return fetchAPI(`${base}/api/checkout/pub/orderForm/${id}/attachments/shippingData`, {
162
169
  ...BASE_INIT,
163
170
  body: JSON.stringify(body)