diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-20 17:56:19 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-20 17:56:19 +0200 |
| commit | d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf (patch) | |
| tree | 0ea170b764e5aad2713c6ed9429729579cc69a63 /client/reducers/tasks.js | |
| parent | e9c0ffcd5d58310c6cff6a5a73bdf6062485eba4 (diff) | |
disabled links
Diffstat (limited to 'client/reducers/tasks.js')
| -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 |
