From e867de7b71534f0fca8898fe0fa58a363deb2712 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 30 Jun 2026 15:57:28 +0300 Subject: [PATCH] updates --- lib/features/authentication/authentication_view_model.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/features/authentication/authentication_view_model.dart b/lib/features/authentication/authentication_view_model.dart index bb6def9e..b51b36e4 100644 --- a/lib/features/authentication/authentication_view_model.dart +++ b/lib/features/authentication/authentication_view_model.dart @@ -1209,13 +1209,15 @@ class AuthenticationViewModel extends ChangeNotifier { } // Fetch profile image after switching user - await _fetchProfileImage(activation.list!.first.patientId); + // await _fetchProfileImage(activation.list!.first.patientId); + _fetchProfileImage(activation.list!.first.patientId); } else { activation.list!.first.isParentUser = true; _appState.addUserSwitchPayload(activation.list!.first.toJson(), isSuperUser: true); // Fetch profile image after login - await _fetchProfileImage(activation.list!.first.patientId); + // await _fetchProfileImage(activation.list!.first.patientId); + _fetchProfileImage(activation.list!.first.patientId); } activation.list!.first.bloodGroup = activation.patientBloodType; activation.list!.first.zipCode = selectedCountrySignup == CountryEnum.others ? '0' : selectedCountrySignup.countryCode;