@nuskin/cs-product-lib 1.2.0-brw-4716.2 → 1.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helpers.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/cs-product-lib",
3
- "version": "1.2.0-brw-4716.2",
3
+ "version": "1.2.1",
4
4
  "description": "Library for pulling and parsing product content (and applying business logic) retrieved from Contentstack",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/helpers.js CHANGED
@@ -746,7 +746,7 @@ function mapResults(productOrVariant) {
746
746
  },
747
747
  image: mapImage(
748
748
  (Array.isArray(results.image_or_video) &&
749
- results.image_or_video.length > 0) ||
749
+ results.image_or_video.length > 0) ? results.image_or_video :
750
750
  results.image, true, null, 460, 95
751
751
  ),
752
752
  youTubeVideoId: results.youtube_video_id