allow non-admin folks to list their comments

This commit is contained in:
Riley Davis
2016-12-15 13:05:59 -07:00
parent d64c848baa
commit f4ee28c618
2 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const saveBio = (user_id, formData) => dispatch => {
export const fetchCommentsByUserId = userId => {
return (dispatch) => {
dispatch({type: actions.COMMENTS_BY_USER_REQUEST});
return coralApi(`/comments?user_id${userId}`)
return coralApi(`/comments?user_id=${userId}`)
.then(({comments, assets}) => {
comments.forEach(comment => dispatch(addItem(comment, 'comments')));