Skip to content

Commit

Permalink
Fix: No notification when goal type is set to "maximum" (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
manish99verma authored Feb 3, 2024
1 parent 3a06036 commit ab86cee
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 / 1000.0 <= targetValue
NumericalHabitType.AT_MOST -> value != Entry.UNKNOWN && value / 1000.0 <= targetValue
}
} else {
value != Entry.NO && value != Entry.UNKNOWN
Expand Down

0 comments on commit ab86cee

Please sign in to comment.