From 46cc8a33fe206c2c3bbd781374e727c1a42b9094 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Mon, 10 May 2021 20:00:21 -0400 Subject: fixed minor issues --- src/services/CommentService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services') diff --git a/src/services/CommentService.ts b/src/services/CommentService.ts index f5583ac0..e85b1991 100644 --- a/src/services/CommentService.ts +++ b/src/services/CommentService.ts @@ -181,11 +181,11 @@ export const getUsersReactedToAComment = async (comment: CommentBaseType) => { }); const typedResponse: { reaction: ReactionOptionsType; - users: ProfilePreviewType[]; + user_list: ProfilePreviewType[]; }[] = await response.json(); for (const obj of typedResponse) { if (obj.reaction === ReactionOptionsType.Like) { - return obj.users; + return obj.user_list; } } return []; -- cgit v1.2.3-70-g09d2