From fab3b1f7d046895dbaaff1ceddbc75f9ffc7fda0 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 11 May 2021 18:35:29 -0400 Subject: updated with new endpoints --- src/services/CommentService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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: { -- cgit v1.2.3-70-g09d2