haroon_dev
haroon amjad 2 days ago
parent 948416da74
commit e867de7b71

@ -1209,13 +1209,15 @@ class AuthenticationViewModel extends ChangeNotifier {
} }
// Fetch profile image after switching user // Fetch profile image after switching user
await _fetchProfileImage(activation.list!.first.patientId); // await _fetchProfileImage(activation.list!.first.patientId);
_fetchProfileImage(activation.list!.first.patientId);
} else { } else {
activation.list!.first.isParentUser = true; activation.list!.first.isParentUser = true;
_appState.addUserSwitchPayload(activation.list!.first.toJson(), isSuperUser: true); _appState.addUserSwitchPayload(activation.list!.first.toJson(), isSuperUser: true);
// Fetch profile image after login // 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.bloodGroup = activation.patientBloodType;
activation.list!.first.zipCode = selectedCountrySignup == CountryEnum.others ? '0' : selectedCountrySignup.countryCode; activation.list!.first.zipCode = selectedCountrySignup == CountryEnum.others ? '0' : selectedCountrySignup.countryCode;

Loading…
Cancel
Save