@fonixtree/magic-design 2.0.185 → 2.0.186

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.
@@ -164,7 +164,7 @@ function (_super) {
164
164
  }
165
165
  }
166
166
 
167
- var _discountPercent = isRecommend ? data.sppDiscountPercent : data.discountPercent;
167
+ var _discountPercent = isRecommend ? data.sppDiscountPercent || data.discountPercent : data.discountPercent;
168
168
 
169
169
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
170
170
  className: (0, _classnames["default"])('monpay-product-item-wrap', {
@@ -164,7 +164,7 @@ function (_super) {
164
164
  }
165
165
  }
166
166
 
167
- var _discountPercent = isRecommend ? data.sppDiscountPercent : data.discountPercent;
167
+ var _discountPercent = isRecommend ? data.sppDiscountPercent || data.discountPercent : data.discountPercent;
168
168
 
169
169
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
170
170
  className: (0, _classnames["default"])('monpay-product-item-wrap', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.185",
4
+ "version": "2.0.186",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",