Skip to content

Commit 74435b9

Browse files
committed
[CHORE] #125 : 불필요한 스코프 소거
1 parent ef01504 commit 74435b9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

feature/management-event/src/main/java/com/wap/wapp/feature/management/event/registration/EventRegistrationScreen.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,13 @@ internal fun EventRegistrationRoute(
7171
LaunchedEffect(true) {
7272
viewModel.eventRegistrationEvent.collectLatest {
7373
when (it) {
74-
is EventRegistrationEvent.Failure -> {
74+
is EventRegistrationEvent.Failure ->
7575
snackBarHostState.showSnackbar(it.error.toSupportingText())
76-
}
7776

78-
is EventRegistrationEvent.ValidationError -> {
77+
is EventRegistrationEvent.ValidationError ->
7978
snackBarHostState.showSnackbar(it.message)
80-
}
8179

82-
is EventRegistrationEvent.Success -> {
83-
navigateToManagement()
84-
}
80+
is EventRegistrationEvent.Success -> navigateToManagement()
8581
}
8682
}
8783
}

0 commit comments

Comments
 (0)