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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user