Fix app crash
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-24 15:00:41 +01:00
parent 346ac10e68
commit 637a34efd7

View File

@@ -39,7 +39,7 @@ class HistoryListViewModel : ViewModel() {
private fun getScoreA() {
var tempScore = 0
scores.forEach {
tempScore += it.scoreA!!
it.scoreA?.let { it -> tempScore += it }
}
_totalScoreA.value = tempScore
}
@@ -47,7 +47,7 @@ class HistoryListViewModel : ViewModel() {
private fun getScoreB() {
var tempScore = 0
scores.forEach {
tempScore += it.scoreB!!
it.scoreB?.let {it -> tempScore += it}
}
_totalScoreB.value = tempScore
}