We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364c2a8 commit 3efaf09Copy full SHA for 3efaf09
1 file changed
presentation/src/main/java/com/threegap/bitnagil/presentation/routinelist/RoutineListViewModel.kt
@@ -103,8 +103,8 @@ class RoutineListViewModel @Inject constructor(
103
104
fun deleteRoutineCompletely() {
105
intent {
106
- reduce { state.copy(isLoading = true) }
107
val selectedRoutine = state.selectedRoutine ?: return@intent
+ reduce { state.copy(isLoading = true) }
108
deleteRoutineUseCase(selectedRoutine.routineId).fold(
109
onSuccess = {
110
fetchRoutines()
0 commit comments