diff options
Diffstat (limited to 'client/reducers')
| -rw-r--r-- | client/reducers/tasks.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/reducers/tasks.js b/client/reducers/tasks.js index c5f2c06..9c2b0b4 100644 --- a/client/reducers/tasks.js +++ b/client/reducers/tasks.js @@ -1,4 +1,3 @@ -// import { addTask } from '../actions' import client from '../client' const tasks = (state = [], action) => { @@ -9,7 +8,7 @@ const tasks = (state = [], action) => { case 'ADD_TASK': return [action.task].concat(state) - case 'TASK_UPDATED': + case 'UPDATE_TASK': const updated_tasks = state.map(task => { if (task.id == id) { return task |
