aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-11 18:35:29 -0400
committerIvan Chen <ivan@tagg.id>2021-05-11 18:35:29 -0400
commitfab3b1f7d046895dbaaff1ceddbc75f9ffc7fda0 (patch)
tree865ef02f4b2866b0b1a66314cea8f7173938d711
parent17b8a3712ac34cb382c30864b4404f49118220a9 (diff)
updated with new endpoints
-rw-r--r--src/services/CommentService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/CommentService.ts b/src/services/CommentService.ts
index 75bef2e4..ad8f14ac 100644
--- a/src/services/CommentService.ts
+++ b/src/services/CommentService.ts
@@ -145,7 +145,7 @@ export const handleLikeUnlikeComment = async (
: COMMENT_REACTIONS_ENDPOINT;
if (comment.user_reaction !== null) {
// unlike a comment
- url += `${comment.user_reaction.id}/`;
+ url += `${comment.comment_id}/?reaction_type=LIKE`;
const response = await fetch(url, {
method: 'DELETE',
headers: {