aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/comments/CommentTile.tsx8
-rw-r--r--src/types/types.ts3
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 =