@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.
@@ -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 = "1.12.40";
16
+ var version = "1.12.41";
17
17
  var license = "MIT";
18
18
  var main = "dist/index.js";
19
19
  var typings = "dist/index.d.ts";
@@ -157,6 +157,14 @@ const VtexCommerce = ({
157
157
  id,
158
158
  body
159
159
  }) => {
160
+ if (body.selectedAddresses) {
161
+ body.selectedAddresses.forEach(address => {
162
+ if (address.geoCoordinates === null) {
163
+ address.geoCoordinates = [];
164
+ }
165
+ });
166
+ }
167
+
160
168
  return fetchAPI(`${base}/api/checkout/pub/orderForm/${id}/attachments/shippingData`, { ...BASE_INIT,
161
169
  body: JSON.stringify(body)
162
170
  });