diff --git a/lib/actions.js b/lib/actions.js index c440e974..39c7a4f4 100644 --- a/lib/actions.js +++ b/lib/actions.js @@ -40,7 +40,6 @@ export function clearNewArticle () { } } - export function updateArticle (article) { return { type: ARTICLE_UPDATE, diff --git a/lib/reducer.js b/lib/reducer.js index 27971fb9..e125848b 100644 --- a/lib/reducer.js +++ b/lib/reducer.js @@ -54,7 +54,7 @@ function user (state = initialUser, action) { switch (action.type) { case USER_UPDATE: let updated = Object.assign(state, action.data) - dataStore.saveUser(updated) + dataStore.saveUser(null, updated) return updated default: return state