From a2c0341dc42ffe485d37094612224fc4ce0694e9 Mon Sep 17 00:00:00 2001 From: Hudah Date: Mon, 25 Nov 2024 02:08:32 -0600 Subject: [PATCH] Truncated progress bar percent to be 2 decimal places max. --- .../View/Reporting/ViewAssessmentStatus/ViewAssessmentStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FrontEndReact/src/View/Admin/View/Reporting/ViewAssessmentStatus/ViewAssessmentStatus.js b/FrontEndReact/src/View/Admin/View/Reporting/ViewAssessmentStatus/ViewAssessmentStatus.js index 4a1813da7..551de6ec8 100644 --- a/FrontEndReact/src/View/Admin/View/Reporting/ViewAssessmentStatus/ViewAssessmentStatus.js +++ b/FrontEndReact/src/View/Admin/View/Reporting/ViewAssessmentStatus/ViewAssessmentStatus.js @@ -65,7 +65,7 @@ export default function ViewAssessmentStatus(props) { var allRatings = []; var avg = 0; var stdev = 0; - var progress = props.completedAssessmentsPercentage; + var progress = +props.completedAssessmentsPercentage.toFixed(2); if (props.completedAssessments !== null && props.completedAssessments.length > 0) { // Iterate through each completed assessment for chosen assessment task