diff --git a/lib/pages/MyAppointments/MyAppointments.dart b/lib/pages/MyAppointments/MyAppointments.dart index 1163da12..7939e0c0 100644 --- a/lib/pages/MyAppointments/MyAppointments.dart +++ b/lib/pages/MyAppointments/MyAppointments.dart @@ -270,10 +270,6 @@ class _MyAppointmentsState extends State with SingleTickerProvid } else { _patientBookedAppointmentListHospital.add(PatientAppointmentList(filterName: element.projectName, patientDoctorAppointment: element)); } - - //Merging Booked & Confirmed Appointments into Upcoming Tab - _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital); - _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic); }); confirmedAppoList.forEach((element) { @@ -302,8 +298,8 @@ class _MyAppointmentsState extends State with SingleTickerProvid } //Merging Booked & Confirmed Appointments into Upcoming Tab - _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital); - _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic); + // _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientConfirmedAppointmentListHospital); + // _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientConfirmedAppointmentListClinic); }); arrivedAppoList.forEach((element) { @@ -333,6 +329,11 @@ class _MyAppointmentsState extends State with SingleTickerProvid // openAppointmentsTab(); }); + + //Merging Booked & Confirmed Appointments into Upcoming Tab + _patientBookedAndConfirmedAppointmentListHospital.addAll(_patientBookedAppointmentListHospital); + _patientBookedAndConfirmedAppointmentListClinic.addAll(_patientBookedAppointmentListClinic); + } openAppointmentsTab() async {