Skip to content

Commit

Permalink
[MOD/#308] immutableList ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Dec 19, 2024
1 parent 83d51ae commit 7316709
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import com.terning.feature.home.component.HomeRecommendEmptyIntern
import com.terning.feature.home.component.HomeUpcomingEmptyFilter
import com.terning.feature.home.component.HomeUpcomingEmptyIntern
import com.terning.feature.home.component.HomeUpcomingInternScreen
import okhttp3.internal.toImmutableList

const val NAME_MAX_LENGTH = 5

Expand Down Expand Up @@ -144,7 +145,7 @@ fun HomeScreen(
}

val homeRecommendInternList = when (homeState.homeRecommendInternState) {
is UiState.Success -> (homeState.homeRecommendInternState as UiState.Success<HomeRecommendIntern>).data.homeRecommendInternDetail
is UiState.Success -> (homeState.homeRecommendInternState as UiState.Success<HomeRecommendIntern>).data.homeRecommendInternDetail.toImmutableList()
else -> listOf()
}

Expand Down Expand Up @@ -424,7 +425,7 @@ private fun ShowUpcomingIntern(
)

else -> HomeUpcomingInternScreen(
internList = homeUpcomingInternDetail,
internList = homeUpcomingInternDetail.toImmutableList(),
navigateToIntern = navigateToIntern,
)
}
Expand Down

0 comments on commit 7316709

Please sign in to comment.