Fix wrong check for taking attendance

This commit is contained in:
Rotimi Best
2021-11-02 09:52:05 +02:00
parent d7c0749462
commit 9d7266f906
+1 -1
View File
@@ -62,7 +62,7 @@
? $attendance[student.id][lesson.id] || {} ? $attendance[student.id][lesson.id] || {}
: {}; : {};
if (attendanceItem.id) { if (!attendanceItem.id) {
$snackbarStore.open = true; $snackbarStore.open = true;
$snackbarStore.severity = SNACKBAR_SEVERITY.ERROR; $snackbarStore.severity = SNACKBAR_SEVERITY.ERROR;
$snackbarStore.message = $snackbarStore.message =