@local-civics/mgmt-ui 0.1.146 → 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.mjs
CHANGED
|
@@ -484,7 +484,8 @@ const StatsGroup = ({ data, footer }) => {
|
|
|
484
484
|
}
|
|
485
485
|
return stat.value;
|
|
486
486
|
})();
|
|
487
|
-
|
|
487
|
+
const safeValue = Number.isFinite(value) ? value : 0;
|
|
488
|
+
return /* @__PURE__ */ React.createElement("div", { key: stat.title, className: classes.stat }, /* @__PURE__ */ React.createElement(Text, { className: classes.count }, safeValue.toLocaleString(), stat.unit), /* @__PURE__ */ React.createElement(Text, { className: classes.title }, stat.title));
|
|
488
489
|
});
|
|
489
490
|
return /* @__PURE__ */ React.createElement("div", { className: classes.root }, stats, footer);
|
|
490
491
|
};
|