Skip to content

Commit d7ad87b

Browse files
committed
comment: updateCount 주석 제거
1 parent 634a993 commit d7ad87b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/App.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ export default class App {
3535

3636
// 카운트 업데이트
3737
updateCount(todoList: TodoItem[]) {
38-
// const done = todoList.filter((todo) => todo.isCompleted).length;
39-
// const nextState = { total: todoList.length, done };
40-
// this.todoCount.setState(nextState);
41-
// setItem("count", JSON.stringify(nextState));
38+
const done = todoList.filter((todo) => todo.isCompleted).length;
39+
const nextState = { total: todoList.length, done };
40+
this.todoCount.setState(nextState);
41+
setItem("count", JSON.stringify(nextState));
4242
};
4343
}

0 commit comments

Comments
 (0)