diff --git a/presentation/src/main/java/com/nto/presentation/screens/profileScreen/ProfileViewModel.kt b/presentation/src/main/java/com/nto/presentation/screens/profileScreen/ProfileViewModel.kt index fa739f8..12bc576 100644 --- a/presentation/src/main/java/com/nto/presentation/screens/profileScreen/ProfileViewModel.kt +++ b/presentation/src/main/java/com/nto/presentation/screens/profileScreen/ProfileViewModel.kt @@ -61,7 +61,11 @@ class ProfileViewModel @Inject constructor( viewModelScope.launch(Dispatchers.IO) { useCase.logout() Dispatchers.Main { - navController.navigate(Destinations.Login) + navController.navigate(Destinations.Login) { + popUpTo { + inclusive = true + } + } } } }