@credithub/harlan-components 1.83.4 → 1.83.5

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.
@@ -113,11 +113,11 @@ var RefinSerasa = function (_a) {
113
113
  var valorTotalPendencias = useMemo(function () {
114
114
  var _a, _b, _c, _d, _e, _f, _g, _h;
115
115
  var resumo = (_b = (_a = response === null || response === void 0 ? void 0 : response.document) === null || _a === void 0 ? void 0 : _a.dados) === null || _b === void 0 ? void 0 : _b.resumo;
116
- return ((Number((_d = (_c = resumo === null || resumo === void 0 ? void 0 : resumo.pefin) === null || _c === void 0 ? void 0 : _c.valor_total) === null || _d === void 0 ? void 0 : _d.replace('.', '').replace(',', '.')) ||
116
+ return ((Number((_d = (_c = resumo === null || resumo === void 0 ? void 0 : resumo.pefin) === null || _c === void 0 ? void 0 : _c.valor_total) === null || _d === void 0 ? void 0 : _d.replace(/\./g, '').replace(',', '.')) ||
117
117
  0) +
118
- (Number((_f = (_e = resumo === null || resumo === void 0 ? void 0 : resumo.refin) === null || _e === void 0 ? void 0 : _e.valor_total) === null || _f === void 0 ? void 0 : _f.replace('.', '').replace(',', '.')) ||
118
+ (Number((_f = (_e = resumo === null || resumo === void 0 ? void 0 : resumo.refin) === null || _e === void 0 ? void 0 : _e.valor_total) === null || _f === void 0 ? void 0 : _f.replace(/\./g, '').replace(',', '.')) ||
119
119
  0) +
120
- (Number((_h = (_g = resumo === null || resumo === void 0 ? void 0 : resumo.pendencias_vencidas) === null || _g === void 0 ? void 0 : _g.valor_total) === null || _h === void 0 ? void 0 : _h.replace('.', '').replace(',', '.')) || 0));
120
+ (Number((_h = (_g = resumo === null || resumo === void 0 ? void 0 : resumo.pendencias_vencidas) === null || _g === void 0 ? void 0 : _g.valor_total) === null || _h === void 0 ? void 0 : _h.replace(/\./g, '').replace(',', '.')) || 0));
121
121
  }, [response === null || response === void 0 ? void 0 : response.document]);
122
122
  var description = totalPendencias === 0
123
123
  ? 'Não há ocorrência de Pefin/Refin Serasa'