diff --git a/client/src/stores/competence.ts b/client/src/stores/competence.ts index c6e54e4f..5865a9d3 100644 --- a/client/src/stores/competence.ts +++ b/client/src/stores/competence.ts @@ -35,16 +35,16 @@ export const useCompetenceStore = defineStore({ if (criteria) { const grouped = groupBy(criteria, "completion_status"); return { - FAIL: grouped?.FAIL.length || 0, - SUCCESS: grouped?.SUCCESS.length || 0, - UNKNOWN: grouped?.UNKNOWN.length || 0, + UNKNOWN: grouped?.UNKNOWN?.length || 0, + SUCCESS: grouped?.SUCCESS?.length || 0, + FAIL: grouped?.FAIL?.length || 0, }; } return { + UNKNOWN: 0, SUCCESS: 0, FAIL: 0, - UNKNOWN: 0, }; }, criteriaByCompetence(competence: CompetencePage) {