Skip to content

Commit

Permalink
[CHORE] #105 : 불필요한 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Jan 17, 2024
1 parent 2f2dbec commit aad28da
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import com.wap.designsystem.WappTheme
import com.wap.designsystem.component.WappSubTopBar
import com.wap.wapp.core.commmon.extensions.toSupportingText
import com.wap.wapp.feature.management.event.R
import com.wap.wapp.feature.management.event.edit.EventEditViewModel.EventEditEvent
import com.wap.wapp.feature.management.event.registration.EventRegistrationContent
import com.wap.wapp.feature.management.event.registration.EventRegistrationState
import kotlinx.coroutines.flow.collectLatest
Expand Down Expand Up @@ -70,16 +71,16 @@ internal fun EventEditRoute(

viewModel.eventEditEvent.collectLatest {
when (it) {
is EventEditViewModel.EventEditEvent.Failure ->
is EventEditEvent.Failure ->
snackBarHostState.showSnackbar(it.error.toSupportingText())

is EventEditViewModel.EventEditEvent.ValidationError ->
is EventEditEvent.ValidationError ->
snackBarHostState.showSnackbar(it.message)

is EventEditViewModel.EventEditEvent.EditSuccess ->
is EventEditEvent.EditSuccess ->
navigateToManagement()

is EventEditViewModel.EventEditEvent.DeleteSuccess ->
is EventEditEvent.DeleteSuccess ->
navigateToManagement()
}
}
Expand Down

0 comments on commit aad28da

Please sign in to comment.