Skip to content

Commit

Permalink
[MOD/#154] 색상 팔레트 유지 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jul 19, 2024
1 parent 0cc33c8 commit d5ac20f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ fun HomeRoute(

when (homeTodayState) {
is UiState.Success -> {
homeTodayInternList.value = (homeTodayState as UiState.Success<List<HomeTodayInternModel>>).data
homeTodayInternList.value =
(homeTodayState as UiState.Success<List<HomeTodayInternModel>>).data
}
is UiState.Loading -> { }
else -> {homeTodayInternList.value = emptyList()

is UiState.Loading -> {}
else -> {
homeTodayInternList.value = emptyList()
}
}

Expand Down Expand Up @@ -284,7 +287,10 @@ fun HomeScreen(

if (homeDialogState.isScrapDialogVisible && !homeDialogState.isToday) {
TerningBasicDialog(
onDismissRequest = { viewModel.updateScrapDialogVisible(false) },
onDismissRequest = {
viewModel.updateScrapDialogVisible(false)
viewModel.updatePaletteOpen(false)
},
content = {
if (recommendInternList[scrapId].scrapId != null) {
ScrapCancelDialogContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ fun HomeRecommendInternDialog(
if (state.isColorChange) {
viewModel.updateColorChange(false)
}
viewModel.updatePaletteOpen(false)
viewModel.updateScrapDialogVisible(false)
}
viewModel.postScrap(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fun HomeTodayIntern(
TerningBasicDialog(
onDismissRequest = {
homeViewModel.updateScrapDialogVisible(false)
homeViewModel.updatePaletteOpen(false)
},
content = {
with(internList[selectedIndex]) {
Expand Down

0 comments on commit d5ac20f

Please sign in to comment.