unify check models
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user