From 9305d85d01764c8c47a597dcb1c905f5923f41b3 Mon Sep 17 00:00:00 2001 From: amirrezaghabeli Date: Wed, 1 Oct 2025 14:26:12 +0330 Subject: [PATCH] fixed profile logout bug --- lib/view_models/profile_view_model.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/view_models/profile_view_model.dart b/lib/view_models/profile_view_model.dart index e88b842..5e2f0f1 100644 --- a/lib/view_models/profile_view_model.dart +++ b/lib/view_models/profile_view_model.dart @@ -77,12 +77,6 @@ class ProfileViewModel with ChangeNotifier { notifyListeners(); } - Future localLogout() async { - await _authRepository.localLogout(); - _loggedOut = true; - notifyListeners(); - } - Future logout() async { _errorMessage = null; notifyListeners(); @@ -101,6 +95,7 @@ class ProfileViewModel with ChangeNotifier { notifyListeners(); _errorMessage = null; + _loggedOut = false; notifyListeners(); } }