fix bug in history card

This commit is contained in:
KristianTashkov
2021-09-12 16:23:42 +03:00
parent 113a5028af
commit fe1d5c66cb

View File

@@ -116,7 +116,7 @@ class HistoryCardPresenter(
} else { } else {
entries.map { entries.map {
when { when {
max(0, it.value) < 2 * habit.targetValue -> HistoryChart.Square.ON max(0.0, it.value / 1000.0) < 2 * habit.targetValue -> HistoryChart.Square.ON
else -> HistoryChart.Square.OFF else -> HistoryChart.Square.OFF
} }
} }