diff --git a/src/js/components/HypoAssignment.vue b/src/js/components/HypoAssignment.vue index 58da9540..cf0f47a4 100644 --- a/src/js/components/HypoAssignment.vue +++ b/src/js/components/HypoAssignment.vue @@ -70,7 +70,7 @@ export default { }), computed: { hypo () { - const weight = getInRange(this.assignment.weight, 0, 100, true); + const weight = getInRange(this.assignment.weight, 0, 100, true) || 0; const new_fp = weight * 0.01 * gradeToFP(this.assignment.grade) + ((100 - weight) * 0.01 * this.currentFP); return { fp: new_fp.toFixed(2),