fixing index.html to include step 8 and 9

This commit is contained in:
Ken
2019-02-20 11:04:36 -08:00
parent dd45492657
commit 80da2f0566
2 changed files with 8 additions and 6 deletions

View File

@@ -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);
};
}
};