diff --git a/lib/new_ui/screens/attendance_screen/attendance_screen.dart b/lib/new_ui/screens/attendance_screen/attendance_screen.dart index d4acf05..8cee401 100644 --- a/lib/new_ui/screens/attendance_screen/attendance_screen.dart +++ b/lib/new_ui/screens/attendance_screen/attendance_screen.dart @@ -222,7 +222,6 @@ class _AttendanceScreenState extends State { 'present': attendedLectures, }; - // Update the document with the modified array await FirebaseFirestore.instance .collection("Attendance") .doc(FirebaseAuth.instance.currentUser!.uid) @@ -466,7 +465,7 @@ class _AttendanceScreenState extends State { 'present': attendedLectures }]) }, SetOptions(merge: true)); - + _fetchAndSetAttendance(); Navigator.of(context).pop(); }, child: Text('Add', style: TextStyle(color: Colors.blue)),