aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-01-27 18:44:40 -0500
committerIvan Chen <ivan@tagg.id>2021-01-27 18:44:40 -0500
commitdc9556867dd44b706c43678d40802a335ff40658 (patch)
treeb3302d62596e8c3bea4d0b25444f93dfc1d7ee15
parent614fbcd8b0180b328019e6952ee1fc0de4643eaa (diff)
even better code
-rw-r--r--src/components/comments/CommentTile.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx
index 1247e89a..237c65fc 100644
--- a/src/components/comments/CommentTile.tsx
+++ b/src/components/comments/CommentTile.tsx
@@ -66,9 +66,7 @@ const CommentTile: React.FC<CommentTileProps> = ({
typeOfComment === 'Thread' ? styles.moreMarginWithThread : {},
]}>
<ProfilePreview
- profilePreview={{
- ...comment_object.commenter,
- }}
+ profilePreview={comment_object.commenter}
previewType={'Comment'}
screenType={screenType}
/>