diy-template-components 1.0.23 → 1.0.24

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
@@ -8015,7 +8015,7 @@ const SingleVideoSlide = props => {
8015
8015
  const checkIfOfferIsValid = () => moment().diff(moment(props?.data?.endDate || 0)) < 0;
8016
8016
  const checkForShowDiscount = () => {
8017
8017
  if (props.data.endDate === null || checkIfOfferIsValid()) {
8018
- if (data.discount > 0 && data.offerPriceValidFor === null) {
8018
+ if (data.discount > 0 && !data?.offerPriceValidFor) {
8019
8019
  return true;
8020
8020
  } else if (data.discount > 0 && data.offerPriceValidFor !== null && data.offerPriceValidFor - conversions <= 0) {
8021
8021
  return false;