We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 634a993 commit d7ad87bCopy full SHA for d7ad87b
src/App.ts
@@ -35,9 +35,9 @@ export default class App {
35
36
// 카운트 업데이트
37
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));
+ const done = todoList.filter((todo) => todo.isCompleted).length;
+ const nextState = { total: todoList.length, done };
+ this.todoCount.setState(nextState);
+ setItem("count", JSON.stringify(nextState));
42
};
43
}
0 commit comments