Skip to content

Commit

Permalink
[CHORE] #125 : 불필요한 스코프 소거
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 17, 2024
1 parent ef01504 commit 74435b9
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,13 @@ internal fun EventRegistrationRoute(
LaunchedEffect(true) {
viewModel.eventRegistrationEvent.collectLatest {
when (it) {
is EventRegistrationEvent.Failure -> {
is EventRegistrationEvent.Failure ->
snackBarHostState.showSnackbar(it.error.toSupportingText())
}

is EventRegistrationEvent.ValidationError -> {
is EventRegistrationEvent.ValidationError ->
snackBarHostState.showSnackbar(it.message)
}

is EventRegistrationEvent.Success -> {
navigateToManagement()
}
is EventRegistrationEvent.Success -> navigateToManagement()
}
}
}
Expand Down

0 comments on commit 74435b9

Please sign in to comment.