Skip to content

Commit a87b3a6

Browse files
changed method name
1 parent c86c76f commit a87b3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ep26-enhance-todo-store/app/actions/TodoActions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var TodoActions = {
88
api.addTodo(todo)
99
.then( () => {
1010
console.log("Added TODO successfully");
11-
TodoActions.getAllTodos();
11+
TodoActions.getAllTodosAndUpdateStore();
1212
})
1313
},
1414

@@ -39,7 +39,7 @@ var TodoActions = {
3939
})
4040
},
4141

42-
getAllTodos: () => {
42+
getAllTodosAndUpdateStore: () => {
4343
console.log("Performing getAllTodos");
4444
api.getTodos()
4545
.then( (responseData) => {

0 commit comments

Comments
 (0)