Never mark AT_MOST habits as completed for today

pull/2077/head
Jakub Kalinowski 9 months ago
parent fc9cc423d0
commit 6b27f9b484

@ -61,7 +61,7 @@ data class Habit(
return if (isNumerical) {
when (targetType) {
NumericalHabitType.AT_LEAST -> value / 1000.0 >= targetValue
NumericalHabitType.AT_MOST -> value != Entry.UNKNOWN && value / 1000.0 <= targetValue
NumericalHabitType.AT_MOST -> false
}
} else {
value != Entry.NO && value != Entry.UNKNOWN

Loading…
Cancel
Save