diff --git a/index.html b/index.html index 72436b4..caab100 100644 --- a/index.html +++ b/index.html @@ -122,16 +122,18 @@
  • - +
  • - +
  • diff --git a/step2-09/demo/src/actions/index.ts b/step2-09/demo/src/actions/index.ts index a881f85..d6ff2be 100644 --- a/step2-09/demo/src/actions/index.ts +++ b/step2-09/demo/src/actions/index.ts @@ -30,14 +30,14 @@ export const actionsWithService = { complete: (id: string) => { return async (dispatch: any, getState: () => Store) => { dispatch(actions.complete(id)); - await service.edit(id, getState().todos[id]); + await service.update(id, getState().todos[id]); }; }, clear: () => { return async (dispatch: any, getState: () => Store) => { dispatch(actions.clear()); - await service.editBulk(getState().todos); + await service.updateAll(getState().todos); }; } };