diff --git a/app/src/main/java/com/starry/greenstash/ui/screens/home/composables/HomeScreen.kt b/app/src/main/java/com/starry/greenstash/ui/screens/home/composables/HomeScreen.kt index 00f84c5f..b693e950 100644 --- a/app/src/main/java/com/starry/greenstash/ui/screens/home/composables/HomeScreen.kt +++ b/app/src/main/java/com/starry/greenstash/ui/screens/home/composables/HomeScreen.kt @@ -214,9 +214,11 @@ fun HomeScreenContent( label = { Text(stringResource(id = item.nameResId)) }, selected = item == selectedItem.value, onClick = { - coroutineScope.launch { drawerState.close() } selectedItem.value = item - navController.navigate(item.route) + coroutineScope.launch { + drawerState.close() + navController.navigate(item.route) + } }, modifier = Modifier.padding(NavigationDrawerItemDefaults.ItemPadding) )