From d9d159416d4aae06a08b203b6194a2bdc5be2c8d Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Fri, 19 Jul 2024 03:14:24 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX/#139]=20=EC=B4=88=EA=B8=B0=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/terning/feature/home/home/HomeRoute.kt | 2 +- .../main/java/com/terning/feature/home/home/HomeViewModel.kt | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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) {