commented to not to clear the sharedpref

update_3.16.0_CR5439_Pharmacy_Intervention
Syed Taha Alam 6 months ago
parent 2d5d774852
commit ce7f633a85

@ -407,7 +407,8 @@ class AuthenticationViewModel extends BaseViewModel {
logout({bool isFromLogin = false}) async {
localToken = "";
String? lang = await sharedPref.getString(APP_Language);
await Utils.clearSharedPref();
//COMMENTED THE NOT TO CLEAR THE SHARED PREF
// await Utils.clearSharedPref();
doctorProfile = null;
sharedPref.setString(APP_Language, lang ?? 'en');
deleteUser();

Loading…
Cancel
Save