@nuskin/cs-product-lib 1.0.9-cx12-6632.3 → 1.0.9

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/formatKit.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/cs-product-lib",
3
- "version": "1.0.9-cx12-6632.3",
3
+ "version": "1.0.9",
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/formatKit.js CHANGED
@@ -84,7 +84,7 @@ const parsePrice = (product = []) => {
84
84
  }
85
85
 
86
86
  // sum of price and points from 1st variant of product bundle
87
- const sunOfPriceAndPoints = variants.reduce((acc, curr) => {
87
+ const sumOfPriceAndPoints = variants.reduce((acc, curr) => {
88
88
  const price = {}
89
89
  const points = {
90
90
  subscription : {},
@@ -106,7 +106,7 @@ const parsePrice = (product = []) => {
106
106
 
107
107
  return { price, points}
108
108
  }, defaultValues)
109
- return sunOfPriceAndPoints
109
+ return sumOfPriceAndPoints
110
110
  }
111
111
 
112
112
  const parseKitAvailableQuantity = (kit) => {