Never mark AT_MOST habits as completed for today

This commit is contained in:
Jakub Kalinowski
2024-12-16 18:38:56 +01:00
committed by Alinson S. Xavier
parent 37219cb13f
commit 303020a8c0

View File

@@ -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