Skip to content

Commit 3efaf09

Browse files
committed
Chore: 코드 순서 변경
1 parent 364c2a8 commit 3efaf09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class RoutineListViewModel @Inject constructor(
103103

104104
fun deleteRoutineCompletely() {
105105
intent {
106-
reduce { state.copy(isLoading = true) }
107106
val selectedRoutine = state.selectedRoutine ?: return@intent
107+
reduce { state.copy(isLoading = true) }
108108
deleteRoutineUseCase(selectedRoutine.routineId).fold(
109109
onSuccess = {
110110
fetchRoutines()

0 commit comments

Comments
 (0)