Skip to content

Commit

Permalink
Fix task-overdue disappearing (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 authored Sep 6, 2020
1 parent 204fff9 commit e3db86e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3db86e

Please sign in to comment.