unify check models

This commit is contained in:
Alex Holliday committed 2025-08-18 10:52:00 -07:00
1 parent f5a25bc0e5
commit 5463542532
2 files changed
+2 -3

No files matched your search

@@ -29,7 +29,7 @@ const PieChartLegend = ({ audits }) => {
: theme.palette.tertiary.main;
// Find the position where the number ends and the unit begins
const match = audit.displayValue.match(/(\d+\.?\d*)\s*([a-zA-Z]+)/);
const match = audit?.displayValue?.match(/(\d+\.?\d*)\s*([a-zA-Z]+)/);
let value;
let unit;
if (match) {