fix: remove duplicate comparison in StreakCalculator (batch v1.0.14)
This commit is contained in:
parent
195dfb5a0a
commit
521989ec44
|
|
@ -123,7 +123,7 @@ object StreakCalculator {
|
||||||
|
|
||||||
val sorted = userDays.toSortedSet().toList()
|
val sorted = userDays.toSortedSet().toList()
|
||||||
val latest = sorted.last()
|
val latest = sorted.last()
|
||||||
val includesToday = latest == today || latest == today
|
val includesToday = latest == today
|
||||||
|
|
||||||
// If the latest personal day is older than yesterday, the streak is broken.
|
// If the latest personal day is older than yesterday, the streak is broken.
|
||||||
if (latest.isBefore(today.minusDays(1))) {
|
if (latest.isBefore(today.minusDays(1))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue