diff --git a/lib/pages/MyAppointments/widgets/AppointmentActions.dart b/lib/pages/MyAppointments/widgets/AppointmentActions.dart index 4852909b..1176140b 100644 --- a/lib/pages/MyAppointments/widgets/AppointmentActions.dart +++ b/lib/pages/MyAppointments/widgets/AppointmentActions.dart @@ -380,8 +380,12 @@ class _AppointmentActionsState extends State { prescriptionReportEnhList.add(PrescriptionReportEnh.fromJson(report)); }); print(prescriptionReportEnhList.length); - navigateToMedicinePrescriptionReport( - prescriptionReportEnhList, res['ListPRM']); + if (prescriptionReportEnhList.length != 0) { + navigateToMedicinePrescriptionReport( + prescriptionReportEnhList, res['ListPRM']); + } else { + AppToast.showErrorToast(message: "Sorry there is no data"); + } }).catchError((err) { print(err); AppToast.showErrorToast(message: err);