Skip to content

Commit

Permalink
Merge pull request #215 from atharva-khewle/main
Browse files Browse the repository at this point in the history
attennd
  • Loading branch information
atharva-khewle authored Jul 20, 2024
2 parents 7d5ec79 + 517a756 commit 9aed02a
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 @@ -222,7 +222,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 @@ -466,7 +465,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 9aed02a

Please sign in to comment.