Skip to content

Commit

Permalink
fix: activeTodo에 마감일이 지나간 Todo가 나타나지 않는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
n-ryu committed Dec 15, 2022
1 parent a288f19 commit c1dfdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/core/todo/todoList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class TodoList {
}

private getActiveTodoAsInstance(): Todo {
return this.todoList.filter((el) => el.state === 'READY').sort(Todo.compare())[0];
return this.todoList.filter((el) => el.state === 'READY').sort(defaultCompare)[0];
}

private getActiveTodoId(): string {
Expand Down

0 comments on commit c1dfdfe

Please sign in to comment.