From 614fbcd8b0180b328019e6952ee1fc0de4643eaa Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Wed, 27 Jan 2021 18:43:57 -0500
Subject: fixed thumbnail for comments

---
 src/components/comments/CommentTile.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/components/comments/CommentTile.tsx')

diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx
index 39605f2c..1247e89a 100644
--- a/src/components/comments/CommentTile.tsx
+++ b/src/components/comments/CommentTile.tsx
@@ -67,10 +67,7 @@ const CommentTile: React.FC<CommentTileProps> = ({
         ]}>
         <ProfilePreview
           profilePreview={{
-            id: comment_object.commenter.id,
-            username: comment_object.commenter.username,
-            first_name: comment_object.commenter.first_name,
-            last_name: comment_object.commenter.last_name,
+            ...comment_object.commenter,
           }}
           previewType={'Comment'}
           screenType={screenType}
-- 
cgit v1.2.3-70-g09d2


From dc9556867dd44b706c43678d40802a335ff40658 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Wed, 27 Jan 2021 18:44:40 -0500
Subject: even better code

---
 src/components/comments/CommentTile.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/components/comments/CommentTile.tsx')

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}
         />
-- 
cgit v1.2.3-70-g09d2

