From 80da2f0566ab3fa3317902a595964d1b9c11cf10 Mon Sep 17 00:00:00 2001 From: Ken Date: Wed, 20 Feb 2019 11:04:36 -0800 Subject: [PATCH] fixing index.html to include step 8 and 9 --- index.html | 10 ++++++---- step2-09/demo/src/actions/index.ts | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) 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); }; } };