@measurequick/measurequick-report-generator 1.5.220 → 1.5.221

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.5.220",
3
+ "version": "1.5.221",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -669,12 +669,11 @@ export async function getReport(payload, _test) {
669
669
 
670
670
  // Special handling for Ambient CO
671
671
  if (passFails[i] === "ambient_pass_fail") {
672
- const coValue = test.data && test.data.co_ambient !== undefined && test.data.co_ambient !== null
673
- ? Number(test.data.co_ambient)
674
- : null;
672
+ // Use coAmbRaw which is already defined and validated earlier in the function
673
+ const coValue = isFinite(coAmbRaw) ? coAmbRaw : null;
675
674
 
676
675
  // Use CO-specific icon based on actual value
677
- if (coValue !== null && !isNaN(coValue)) {
676
+ if (coValue !== null) {
678
677
  icon = getCOIcon(coValue);
679
678
  const stateText = getCOStateText(coValue);
680
679