@faststore/api 2.0.58-alpha.0 → 2.0.60-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.
- package/dist/api.cjs.development.js +1 -1
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +1 -1
- package/dist/api.esm.js.map +1 -1
- package/dist/platforms/vtex/clients/search/index.d.ts +1 -1
- package/dist/platforms/vtex/clients/sp/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/platforms/vtex/clients/search/index.ts +4 -2
- package/src/platforms/vtex/clients/sp/index.ts +1 -1
- package/src/platforms/vtex/utils/sku.ts +1 -1
|
@@ -1537,7 +1537,7 @@ const pickBestSku = skus => {
|
|
|
1537
1537
|
}, {
|
|
1538
1538
|
offer: o2
|
|
1539
1539
|
}) => bestOfferFirst(o1, o2));
|
|
1540
|
-
return best.sku;
|
|
1540
|
+
return best ? best.sku : skus[0];
|
|
1541
1541
|
};
|
|
1542
1542
|
const isValidSkuId = skuId => skuId !== '' && !Number.isNaN(Number(skuId));
|
|
1543
1543
|
|