fix bug in history card

pull/1101/head
KristianTashkov 4 years ago
parent 113a5028af
commit fe1d5c66cb

@ -116,7 +116,7 @@ class HistoryCardPresenter(
} else {
entries.map {
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
}
}

Loading…
Cancel
Save