Fix typecheck 🪓
This commit is contained in:
parent
7f92272290
commit
a7900f6bc8
|
|
@ -45,15 +45,15 @@ const assignments = computed(() => {
|
|||
});
|
||||
|
||||
const totalPointsEvaluatedAssignments = computed(() => {
|
||||
return assignmentsMaxEvaluationPoints(assignments.value);
|
||||
return assignmentsMaxEvaluationPoints(assignments.value ?? []);
|
||||
});
|
||||
|
||||
const userPointsEvaluatedAssignments = computed(() => {
|
||||
return assignmentsUserPoints(assignments.value);
|
||||
return assignmentsUserPoints(assignments.value ?? []);
|
||||
});
|
||||
|
||||
const numAssignmentsEvaluated = computed(() => {
|
||||
return assignments.value.filter((a) => {
|
||||
return (assignments.value ?? []).filter((a) => {
|
||||
return a.completion?.completion_status === "EVALUATION_SUBMITTED";
|
||||
}).length;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -59,5 +59,5 @@ export function getCertificates(
|
|||
console.error("Data structure is not recognized!");
|
||||
return null;
|
||||
}
|
||||
return certificates ?? null;
|
||||
return (certificates as unknown as CompetenceCertificateListObjectType) ?? null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue