diy-template-components 0.1.7 → 0.1.8

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/build/index.js CHANGED
@@ -6802,7 +6802,7 @@ const SingleVideoSlide$1 = props => {
6802
6802
  discount
6803
6803
  }) => {
6804
6804
  console.log('discountxx', props.data.price, props.data.discount);
6805
- return ((price - discount) / price * 100).toFixed(2);
6805
+ return (discount / price * 100).toFixed(2);
6806
6806
  };
6807
6807
 
6808
6808
  const classes = useWebinarPromotionPage();
@@ -6866,7 +6866,7 @@ const SingleVideoSlide$1 = props => {
6866
6866
  className: classes.priceContainer
6867
6867
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6868
6868
  className: classes.offerPrice
6869
- }, "\u20B9", data?.discount), /*#__PURE__*/React__default["default"].createElement("p", {
6869
+ }, "\u20B9", data?.effectivePrice), /*#__PURE__*/React__default["default"].createElement("p", {
6870
6870
  style: {
6871
6871
  fontSize: '20px',
6872
6872
  marginTop: '0px'