From 080e69d1bd8d1b22209e94aa11715107afe96b86 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Fri, 26 Jan 2024 13:27:00 -0500 Subject: [PATCH] fix: correctly calculate audited findings percentage --- src/views/Dashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index cc9518cec..dea4eba64 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -199,7 +199,7 @@ this.totalFindings = common.valueWithDefault(metric.findingsTotal, "0"); this.auditedFindings = common.valueWithDefault(metric.findingsAudited, "0"); - this.auditedFindingPercent = common.calcProgressPercent(this.findingsTotal, this.findingsAudited); + this.auditedFindingPercent = common.calcProgressPercent(this.totalFindings, this.auditedFindings); this.totalViolations = common.valueWithDefault(metric.policyViolationsTotal, "0"); this.auditedViolations = common.valueWithDefault(metric.policyViolationsAudited, "0");