fix: mark count only counts value 1 (check) marks, excludes -1

This commit is contained in:
walamana committed 2026-07-14 22:10:26 +02:00
1 parent 2da6b33b36
commit 7d3d1587c4
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ const allMinistrants = computed(() => {
})
function ministrantTotalMarks(miniId: number): number {
return props.marks.filter(m => m.mid === miniId && m.value !== 0).length
return props.marks.filter(m => m.mid === miniId && m.value === 1).length
}
function getMark(gid: number, mid: number): Mark {