pb-sxp-ui 1.7.8 → 1.7.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.
package/dist/index.cjs CHANGED
@@ -865,7 +865,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
865
865
  try {
866
866
  let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
867
867
  if (replaceValue) {
868
- if (prop.indexOf('currency') &&
868
+ if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
869
869
  (replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
870
870
  typeof replaceValue === 'string') {
871
871
  replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];