@faststore/api 1.12.41 → 1.12.42

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.
package/dist/api.esm.js CHANGED
@@ -9,7 +9,7 @@ import { Kind } from 'graphql/language';
9
9
  import { mapSchema, MapperKind, getDirective } from '@graphql-tools/utils';
10
10
 
11
11
  var name = "@faststore/api";
12
- var version = "1.12.40";
12
+ var version = "1.12.41";
13
13
  var license = "MIT";
14
14
  var main = "dist/index.js";
15
15
  var typings = "dist/index.d.ts";
@@ -153,6 +153,14 @@ const VtexCommerce = ({
153
153
  id,
154
154
  body
155
155
  }) => {
156
+ if (body.selectedAddresses) {
157
+ body.selectedAddresses.forEach(address => {
158
+ if (address.geoCoordinates === null) {
159
+ address.geoCoordinates = [];
160
+ }
161
+ });
162
+ }
163
+
156
164
  return fetchAPI(`${base}/api/checkout/pub/orderForm/${id}/attachments/shippingData`, { ...BASE_INIT,
157
165
  body: JSON.stringify(body)
158
166
  });