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.es.js CHANGED
@@ -6788,7 +6788,7 @@ const SingleVideoSlide$1 = props => {
6788
6788
  discount
6789
6789
  }) => {
6790
6790
  console.log('discountxx', props.data.price, props.data.discount);
6791
- return ((price - discount) / price * 100).toFixed(2);
6791
+ return (discount / price * 100).toFixed(2);
6792
6792
  };
6793
6793
 
6794
6794
  const classes = useWebinarPromotionPage();
@@ -6852,7 +6852,7 @@ const SingleVideoSlide$1 = props => {
6852
6852
  className: classes.priceContainer
6853
6853
  }, /*#__PURE__*/React.createElement("div", {
6854
6854
  className: classes.offerPrice
6855
- }, "\u20B9", data?.discount), /*#__PURE__*/React.createElement("p", {
6855
+ }, "\u20B9", data?.effectivePrice), /*#__PURE__*/React.createElement("p", {
6856
6856
  style: {
6857
6857
  fontSize: '20px',
6858
6858
  marginTop: '0px'