Merge pull request 'fixed profile logout bug' (#198) from logout_bug into main

Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/198
This commit is contained in:
a.ghabeli
2025-10-01 14:26:43 +03:30
+1 -6
View File
@@ -77,12 +77,6 @@ class ProfileViewModel with ChangeNotifier {
notifyListeners();
}
Future<void> localLogout() async {
await _authRepository.localLogout();
_loggedOut = true;
notifyListeners();
}
Future<void> logout() async {
_errorMessage = null;
notifyListeners();
@@ -101,6 +95,7 @@ class ProfileViewModel with ChangeNotifier {
notifyListeners();
_errorMessage = null;
_loggedOut = false;
notifyListeners();
}
}