Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
msk4862 committed Nov 1, 2020
1 parent cf81145 commit bbf540d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Posts/UserTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UserTile = ({ userImage, userHandle, createdAt, body }) => {
<small>{dayjs(createdAt).fromNow()}</small>

{/* text */}
<MarkdownRenderer content={body} />
{body && <MarkdownRenderer content={body} />}
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/redux/reducers/dataReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ export default (state = initialState, action) => {
};

case ACTIONS.SUBMIT_COMMENT:
// console.log(action)
return {
...state,
post: {
...state.post,
comments: [action.payload, ...state.blog.comments],
comments: [action.payload, ...state.post.comments],
},
};

Expand Down

0 comments on commit bbf540d

Please sign in to comment.