diff --git a/lib/pages/BookAppointment/DoctorProfile.dart b/lib/pages/BookAppointment/DoctorProfile.dart index 60fa6ea2..1681322c 100644 --- a/lib/pages/BookAppointment/DoctorProfile.dart +++ b/lib/pages/BookAppointment/DoctorProfile.dart @@ -622,7 +622,7 @@ class _DoctorProfileState extends State with TickerProviderStateM canPayForWalkInAppointment() { DoctorsListService service = new DoctorsListService(); GifLoaderDialogUtils.showMyDialog(context); - service.canPayForWalkInAppointment(widget.doctor.projectID!, widget.doctor.clinicID!, widget.doctor.doctorID!).then((res) { + service.canPayForWalkInAppointment(widget.doctor.clinicID!, widget.doctor.projectID!, widget.doctor.doctorID!).then((res) { GifLoaderDialogUtils.hideDialog(context); navigateToWaitingAppointment(context); }).catchError((err) { diff --git a/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart b/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart index cca8842d..6853c6d9 100644 --- a/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart +++ b/lib/pages/BookAppointment/waiting_appointment/waiting_appointment_verification.dart @@ -256,7 +256,6 @@ class _WaitingAppointmentVerificationState extends State with SingleTick canPayForWalkInAppointment() { DoctorsListService service = new DoctorsListService(); GifLoaderDialogUtils.showMyDialog(context); - service.canPayForWalkInAppointment(widget.appo.projectID!, widget.appo.clinicID!, widget.appo.doctorID!).then((res) { + service.canPayForWalkInAppointment(widget.appo.clinicID!, widget.appo.projectID!, widget.appo.doctorID!).then((res) { GifLoaderDialogUtils.hideDialog(context); navigateToWaitingAppointment(context); }).catchError((err) { GifLoaderDialogUtils.hideDialog(context); - AppToast.showErrorToast(message: err); + AppToast.showErrorToast(message: err, localContext: context); print(err); }); }