diff --git a/feature/lectureevaluation/my/src/main/java/com/suwiki/feature/lectureevaluation/my/MyEvaluationViewModel.kt b/feature/lectureevaluation/my/src/main/java/com/suwiki/feature/lectureevaluation/my/MyEvaluationViewModel.kt index 005469f6..36310cfd 100644 --- a/feature/lectureevaluation/my/src/main/java/com/suwiki/feature/lectureevaluation/my/MyEvaluationViewModel.kt +++ b/feature/lectureevaluation/my/src/main/java/com/suwiki/feature/lectureevaluation/my/MyEvaluationViewModel.kt @@ -57,7 +57,7 @@ class MyEvaluationViewModel @Inject constructor( reduce { lectureEvaluationPage++ isLastLectureEvaluation = it.isEmpty() - state.copy(myLectureEvaluationList = currentList.addAll(it).distinct().toPersistentList()) + state.copy(myLectureEvaluationList = currentList.addAll(it).distinctBy { it.id }.toPersistentList()) } } .onFailure { @@ -81,7 +81,7 @@ class MyEvaluationViewModel @Inject constructor( reduce { examEvaluationPage++ isLastExamEvaluation = it.isEmpty() - state.copy(myExamEvaluationList = currentList.addAll(it).distinct().toPersistentList()) + state.copy(myExamEvaluationList = currentList.addAll(it).distinctBy { it.id }.toPersistentList()) } } .onFailure {