Skip to content

Commit

Permalink
chore: rename UndoGoal
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Feb 21, 2025
1 parent ec8c711 commit 663219b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private fun DetailGoalEventEffect(
viewModel.goalUiEvent
.onEach { event ->
when (event) {
is DetailGoalUiEvent.UnDoGoal -> {
is DetailGoalUiEvent.UndoGoal -> {
coroutineScope.launch {
onShowSnackbar(
snackBarMsg,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal class DetailGoalViewModel(
if (isCompleted) {
_goalUiEvent.send(DetailGoalUiEvent.CompleteGoal)
} else {
_goalUiEvent.send(DetailGoalUiEvent.UnDoGoal)
_goalUiEvent.send(DetailGoalUiEvent.UndoGoal)
}
}
}
Expand Down Expand Up @@ -124,5 +124,5 @@ sealed interface DetailGoalUiEvent {

data object CompleteGoal : DetailGoalUiEvent

data object UnDoGoal : DetailGoalUiEvent
data object UndoGoal : DetailGoalUiEvent
}

0 comments on commit 663219b

Please sign in to comment.