diff options
author | Husam Salhab <47015061+hsalhab@users.noreply.github.com> | 2020-12-29 19:40:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 19:40:27 -0500 |
commit | 657185c9f3f06f4e38f161ba7bd1fd35512f81f2 (patch) | |
tree | 3bd3090ddddc4dfdcafb56dca0a7159e8586f875 | |
parent | 05cd91206a6ce3361097d9eb408a447eae3d120e (diff) |
[TMA-289] Fix Moments Comments (#155)
* move async-storage
* removed lock files
* added lock files to gitignore
* added the wrong file to gitignore
* minor fixes
* fix serializer json changes
* remove redundant type
-rw-r--r-- | src/components/comments/CommentTile.tsx | 8 | ||||
-rw-r--r-- | src/types/types.ts | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx index da78a4dc..f286ba52 100644 --- a/src/components/comments/CommentTile.tsx +++ b/src/components/comments/CommentTile.tsx @@ -24,10 +24,10 @@ const CommentTile: React.FC<CommentTileProps> = ({ <View style={styles.container}> <ProfilePreview profilePreview={{ - id: comment_object.commenter__id, - username: comment_object.commenter__username, - first_name: '', - last_name: '', + id: comment_object.commenter.id, + username: comment_object.commenter.username, + first_name: comment_object.commenter.first_name, + last_name: comment_object.commenter.last_name, }} previewType={'Comment'} screenType={screenType} diff --git a/src/types/types.ts b/src/types/types.ts index 25160d34..bda43190 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -84,8 +84,7 @@ export interface CommentType { comment_id: string; comment: string; date_time: string; - commenter__id: string; - commenter__username: string; + commenter: ProfilePreviewType; } export type PreviewType = |