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();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> localLogout() async {
|
|
||||||
await _authRepository.localLogout();
|
|
||||||
_loggedOut = true;
|
|
||||||
notifyListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> logout() async {
|
Future<void> logout() async {
|
||||||
_errorMessage = null;
|
_errorMessage = null;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
@@ -101,6 +95,7 @@ class ProfileViewModel with ChangeNotifier {
|
|||||||
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
_errorMessage = null;
|
_errorMessage = null;
|
||||||
|
_loggedOut = false;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user