@local-civics/mgmt-ui 0.1.147 → 0.1.148
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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -504,7 +504,8 @@ const StatsGroup = ({ data, footer }) => {
|
|
|
504
504
|
}
|
|
505
505
|
return stat.value;
|
|
506
506
|
})();
|
|
507
|
-
|
|
507
|
+
const safeValue = Number.isFinite(value) ? value : 0;
|
|
508
|
+
return /* @__PURE__ */ React__namespace.createElement("div", { key: stat.title, className: classes.stat }, /* @__PURE__ */ React__namespace.createElement(core.Text, { className: classes.count }, safeValue.toLocaleString(), stat.unit), /* @__PURE__ */ React__namespace.createElement(core.Text, { className: classes.title }, stat.title));
|
|
508
509
|
});
|
|
509
510
|
return /* @__PURE__ */ React__namespace.createElement("div", { className: classes.root }, stats, footer);
|
|
510
511
|
};
|