diff --git a/CHANGELOG.md b/CHANGELOG.md index 232205f..6c0cdf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [1.2.2] - 2020-09-06 + +### 🐛 Bug Fixes + +- Fixed an issue where the `task-overdue` status would disappear if a task above it was checked off. + ## [1.2.1] - 2020-09-06 ### 🐛 Bug Fixes diff --git a/src/api.ts b/src/api.ts index 23ecbec..dfba69b 100644 --- a/src/api.ts +++ b/src/api.ts @@ -103,7 +103,7 @@ export class Task { return this.datetime.isBefore(); } - return this.datetime.add(1, 'day').isBefore(); + return this.datetime.clone().add(1, 'day').isBefore(); } compareTo(other: Task, sorting_options: string[]): number {