Better and more friendly API

This commit is contained in:
Belen Curcio
2017-05-08 17:46:56 -03:00
parent 6934263f71
commit b547ad44f1
2 changed files with 26 additions and 11 deletions
@@ -34,10 +34,7 @@ class LikeButton extends Component {
if (myLikeActionSummary) {
deleteAction(myLikeActionSummary.current_user.id, comment.id);
} else {
postLike({
item_id: comment.id,
item_type: 'COMMENTS'
});
postLike();
}
};