Book Appo fix

merge-requests/534/head
haroon amjad 4 years ago
parent d0c96d245b
commit 6d970800f9

@ -78,7 +78,7 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
WidgetsBinding.instance.addPostFrameCallback((_) async {
getCurrentLanguage();
if (await this.sharedPref.getBool(IS_LIVECARE_APPOINTMENT))
if (await this.sharedPref.getBool(IS_LIVECARE_APPOINTMENT) != null && await this.sharedPref.getBool(IS_LIVECARE_APPOINTMENT))
getDoctorScheduledFreeSlots(context, widget.doctor);
else {
getDoctorFreeSlots(context, widget.doctor);

Loading…
Cancel
Save