Skip to content

Commit

Permalink
[FIX/#241] 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 16, 2024
1 parent c948c10 commit ad86cc9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ fun FilteringOneRoute(
FilteringOneScreen(
name = name,
onButtonClick = { grade ->
if (grade.isNotEmpty()) {
viewModel.updateGrade(grade)
viewModel.updateButton(true)
} else viewModel.updateButton(false)
with(viewModel) {
if (grade.isNotEmpty()) {
updateGrade(grade)
updateButton(true)
} else updateButton(false)
}
},
onNextClick = viewModel::navigateToFilteringTwo,
navigateUp = viewModel::navigateUp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ fun FilteringTwoRoute(
onNextClick = viewModel::navigateToFilteringThree,
navigateUp = viewModel::navigateUp,
onButtonClick = { workingPeriod ->
if (workingPeriod.isNotEmpty()) {
viewModel.updateWorkingPeriod(workingPeriod)
viewModel.updateButton(true)
} else viewModel.updateButton(false)
with(viewModel) {
if (workingPeriod.isNotEmpty()) {
updateWorkingPeriod(workingPeriod)
updateButton(true)
} else updateButton(false)
}
},
buttonState = state.isButtonValid,
workingPeriod = state.workingPeriod,
Expand Down

0 comments on commit ad86cc9

Please sign in to comment.