diff --git a/src/javascript/components/Report.jsx b/src/javascript/components/Report.jsx index d672b92..4fc0391 100644 --- a/src/javascript/components/Report.jsx +++ b/src/javascript/components/Report.jsx @@ -9,20 +9,20 @@ import "bootstrap/js/dist/alert"; const Report = () => { const { id } = useParams(); - const [rows, radianceOrIrradiance, measurementLabels] = urlToRows(id); + const [selectedRows, radianceOrIrradiance, measurementLabels] = urlToRows(id); - const sampleCount = rows[0].length - 1; + const selectedRowsSampleCount = selectedRows[0].length - 1; const [isLoaded, setLoaded] = useState(true); const [refHAB, setRefHAB] = useState(null); - const powerMode = sampleCount < 6; + const powerMode = selectedRowsSampleCount < 6; return ( -
This report meets the{" "}
@@ -51,16 +51,16 @@ const Report = () => {
{powerMode && (