Skip to content

Commit

Permalink
Never mark AT_MOST habits as completed for today
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Kalinowski committed Dec 16, 2024
1 parent fc9cc42 commit 6b27f9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b27f9b

Please sign in to comment.