Skip to content

Commit

Permalink
fix: 챌린지 기록 에러 캐치 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
TRASALBY committed May 19, 2024
1 parent 4ddd842 commit 9cdbe92
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.sixkids.student.challeng.history

import android.util.Log
import androidx.lifecycle.viewModelScope
import com.sixkids.domain.usecase.challenge.GetChallengeHistoryUseCase
import com.sixkids.domain.usecase.challenge.GetRunningChallengeByStudentUseCase
Expand Down Expand Up @@ -41,18 +40,6 @@ class ChallengeHistoryViewModel @Inject constructor(
}.onSuccess {
intent { copy(isLoading = false, runningChallenge = it) }
}.onFailure {
Log.d("D107", "initData: $it")
when (it) {
is NoSuchElementException -> {
intent { copy(isLoading = false, runningChallenge = null) }
}

else -> {
postSideEffect(
ChallengeHistoryEffect.HandleException(it, ::initData)
)
}
}
}
}

Expand Down

0 comments on commit 9cdbe92

Please sign in to comment.