Skip to content

Commit

Permalink
Update posts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhajdin authored Jan 27, 2021
1 parent b09c1cc commit 4b8aca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/actions/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const likePost = (id) => async (dispatch) => {

export const deletePost = (id) => async (dispatch) => {
try {
await await api.deletePost(id);
await api.deletePost(id);

dispatch({ type: DELETE, payload: id });
} catch (error) {
Expand Down

0 comments on commit 4b8aca3

Please sign in to comment.