diff options
-rw-r--r-- | src/services/CommentService.ts | 2 |
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: { |