fixed profile logout bug

This commit is contained in:
amirrezaghabeli
2025-10-01 14:26:12 +03:30
parent b65f4f5690
commit 9305d85d01
+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();
}
}