diff --git a/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt b/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt index d9595218c..9f2565311 100644 --- a/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt +++ b/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt @@ -99,7 +99,7 @@ fun HomeRoute( } } - LaunchedEffect(currentSortBy.value) { + LaunchedEffect(homeFilteringState, currentSortBy.value) { when (homeFilteringState) { is UiState.Success -> with((homeFilteringState as UiState.Success).data) { diff --git a/feature/src/main/java/com/terning/feature/home/home/HomeViewModel.kt b/feature/src/main/java/com/terning/feature/home/home/HomeViewModel.kt index 36dc99c51..23c813f3e 100644 --- a/feature/src/main/java/com/terning/feature/home/home/HomeViewModel.kt +++ b/feature/src/main/java/com/terning/feature/home/home/HomeViewModel.kt @@ -53,11 +53,6 @@ class HomeViewModel @Inject constructor( getProfile() getFilteringInfo() getHomeTodayInternList() - getRecommendInternsData( - sortBy = _homeSortByState.value, - startYear = 2024, - startMonth = 8, - ) } fun getRecommendInternsData(sortBy: Int, startYear: Int, startMonth: Int) {