@measurequick/measurequick-report-generator 1.4.27 → 1.4.28
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
|
@@ -125,7 +125,7 @@ export async function getReport(payload, _test) {
|
|
|
125
125
|
let systemScorePercentage = t.data.vitals_score ? +t.data.vitals_score.toFixed(0) : 0;
|
|
126
126
|
let systemScoreGrade = util.getGradeFromScore(systemScorePercentage);
|
|
127
127
|
let systemScoreColor = util.getColorFromGrade(systemScoreGrade);
|
|
128
|
-
if (!t.data.vitals_score) {
|
|
128
|
+
if (!t.data.vitals_score || payload.meta.non_invasive) {
|
|
129
129
|
systemScorePercentage = "--";
|
|
130
130
|
systemScoreGrade = "";
|
|
131
131
|
} else systemScorePercentage += "%";
|
|
@@ -114,7 +114,7 @@ export async function getReport(payload, _test) {
|
|
|
114
114
|
let systemScorePercentage = test.testInfo.data.vitals_score ? +test.testInfo.data.vitals_score.toFixed(0) : 0;
|
|
115
115
|
let systemScoreGrade = util.getGradeFromScore(systemScorePercentage);
|
|
116
116
|
let systemScoreColor = util.getColorFromGrade(systemScoreGrade);
|
|
117
|
-
if (!t.data.vitals_score) {
|
|
117
|
+
if (!t.data.vitals_score || payload.meta.non_invasive) {
|
|
118
118
|
systemScorePercentage = "--";
|
|
119
119
|
systemScoreGrade = "";
|
|
120
120
|
} else systemScorePercentage += "%";
|