From c1dfdfe1208be55df30063d4fc55648fd4655e79 Mon Sep 17 00:00:00 2001 From: n-ryu Date: Thu, 15 Dec 2022 14:34:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20activeTodo=EC=97=90=20=EB=A7=88=EA=B0=90?= =?UTF-8?q?=EC=9D=BC=EC=9D=B4=20=EC=A7=80=EB=82=98=EA=B0=84=20Todo?= =?UTF-8?q?=EA=B0=80=20=EB=82=98=ED=83=80=EB=82=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/core/todo/todoList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {