aboutsummaryrefslogtreecommitdiff
path: root/src/services/CommentService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/CommentService.ts')
-rw-r--r--src/services/CommentService.ts4
1 files changed, 2 insertions, 2 deletions
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 [];