From 469169023a42e419d52f61187cbd4e89849c2169 Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Mon, 12 Jul 2021 09:33:51 +0300 Subject: [PATCH] fix get allergies issues --- .../profile/soap_update/subjective/update_subjective_page.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart index ade555ba..89859a35 100644 --- a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart +++ b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart @@ -405,6 +405,9 @@ class _UpdateSubjectivePageState extends State { await model.patchAllergy(postAllergyRequestModel); } + if (model.state == ViewState.ErrorLocal) { + Helpers.showErrorToast(model.error); + } GeneralGetReqForSOAP generalGetReqForSOAP = GeneralGetReqForSOAP( patientMRN: widget.patientInfo.patientMRN, episodeId: widget.patientInfo.episodeNo,