Fix collapse garde subject when grade is unread (#2158)

This commit is contained in:
Rafał Borcz 2023-03-29 22:23:42 +02:00 committed by GitHub
parent bb7e927065
commit 8d2d7922f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ import io.github.wulkanowy.utils.changeModifier
import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.flatMapLatest import kotlinx.coroutines.flow.flatMapLatest
import javax.inject.Inject import javax.inject.Inject
@ -77,7 +78,7 @@ class GradeAverageProvider @Inject constructor(
) )
} }
} }
} }.distinctUntilChanged()
private fun calculateCombinedAverage( private fun calculateCombinedAverage(
student: Student, student: Student,