assessmentsAverage: Fix inaccurate weight when a weight == N/A

N/A weights were automatically set to a weight of 1 for some reason. I removed it from the calculations completely with this commit.
This commit is contained in:
Jaxon Lewis-Wilson
2026-05-05 18:13:27 +08:00
parent da5bc7ab11
commit aa5d193e55
@@ -605,8 +605,7 @@ export async function processAssessments(api: any, assessmentItems: Element[]) {
weighting === "processing" weighting === "processing"
) { ) {
hasInaccurateWeighting = true; hasInaccurateWeighting = true;
weightedTotal += grade; continue
totalWeight += 1;
} else { } else {
const weight = parseFloat(weighting); const weight = parseFloat(weighting);