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 f79784c commit e92cf4d
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,10 @@ internal fun SignUpScreen(
LaunchedEffect(true) {
viewModel.signUpEventFlow.collectLatest {
when (it) {
is SignUpEvent.Success -> {
navigateToNotice()
}
is SignUpEvent.Success -> navigateToNotice()

is SignUpEvent.Failure -> {
snackBarHostState.showSnackbar(
message = it.throwable.toSupportingText(),
)
}
is SignUpEvent.Failure ->
snackBarHostState.showSnackbar(message = it.throwable.toSupportingText())
}
}
}
Expand Down

0 comments on commit e92cf4d

Please sign in to comment.