Skip to content

Commit

Permalink
Merge branch 'TSEC-MAD-Club:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
12fahed authored Jul 20, 2024
2 parents 04042ed + 9aed02a commit eb988f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/new_ui/screens/attendance_screen/attendance_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
'present': attendedLectures,
};

// Update the document with the modified array
await FirebaseFirestore.instance
.collection("Attendance")
.doc(FirebaseAuth.instance.currentUser!.uid)
Expand Down Expand Up @@ -482,7 +481,7 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
'present': attendedLectures
}])
}, SetOptions(merge: true));

_fetchAndSetAttendance();
Navigator.of(context).pop();
},
child: Text('Add', style: TextStyle(color: Colors.blue)),
Expand Down

0 comments on commit eb988f6

Please sign in to comment.