Fix logout navigation
This commit is contained in:
parent
6ab14a31a0
commit
51d708165e
@ -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<Destinations.Profile> {
|
||||
inclusive = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user