diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-05-10 20:00:21 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-05-10 20:00:21 -0400 |
| commit | 46cc8a33fe206c2c3bbd781374e727c1a42b9094 (patch) | |
| tree | e0849a3c1155b3fd5cc3f24fbf6660d2a85dd413 /src/services | |
| parent | 0e9ec9b6403c1556fc53e895eb16ca477106e48e (diff) | |
fixed minor issues
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/CommentService.ts | 4 |
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 []; |
