diff --git a/client/src/core/todo/todoList.ts b/client/src/core/todo/todoList.ts index 1afe023..3c367f6 100644 --- a/client/src/core/todo/todoList.ts +++ b/client/src/core/todo/todoList.ts @@ -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 {