Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider authored Dec 28, 2019
1 parent be0b73f commit 86b3604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const submitBlog = (values, history) => async dispatch => {
const res = await axios.post('/api/blogs', values);

history.push('/blogs');
dispatch({ type: FETCH_USER, payload: res.data });
dispatch({ type: FETCH_BLOG, payload: res.data });
};

export const fetchBlogs = () => async dispatch => {
Expand Down

0 comments on commit 86b3604

Please sign in to comment.