From 203c6985bd4a012f2dc7893f9cff69810646a02e Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Tue, 25 Mar 2025 13:02:12 +0300 Subject: [PATCH] no message --- lib/config/config.dart | 4 ++-- .../viewmodel/pharmacy_intervention_service.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index 1eeef6c9..98984cbc 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -7,9 +7,9 @@ const ONLY_DATE = "[0-9/]"; const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/'; const DOCTOR_ROTATION = 'https://doctorrota.hmg.com/'; // const BASE_URL_LIVE_CARE = 'https://livecareuat.hmg.com/'; -// const BASE_URL = 'https://hmgwebservices.com/'; +const BASE_URL = 'https://hmgwebservices.com/'; -const BASE_URL = 'https://uat.hmgwebservices.com/'; +// const BASE_URL = 'https://uat.hmgwebservices.com/'; // const BASE_URL = 'https://webservices.hmg.com/'; diff --git a/lib/screens/pharmacy_intervention/viewmodel/pharmacy_intervention_service.dart b/lib/screens/pharmacy_intervention/viewmodel/pharmacy_intervention_service.dart index 7a615c1d..05c8542f 100644 --- a/lib/screens/pharmacy_intervention/viewmodel/pharmacy_intervention_service.dart +++ b/lib/screens/pharmacy_intervention/viewmodel/pharmacy_intervention_service.dart @@ -78,7 +78,7 @@ class PharmacyInterventionService extends BaseService { }, onFailure: (String error, int statusCode) { hasError = true; DrAppToastMsg.showErrorToast(error); - super.error = super.error! + "\n" + error; + super.error = super.error ?? "" + "\n" + error; }, body: {}); return success;