mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
fix bug in history card
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user