From 58ab56d0b03491dd062d09e2ee96fe8f88e74bc9 Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Tue, 11 May 2021 17:55:43 -0400
Subject: fixed issue, basic functionality working

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

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

diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx
index e38946af..1f1fafda 100644
--- a/src/components/comments/CommentTile.tsx
+++ b/src/components/comments/CommentTile.tsx
@@ -150,10 +150,11 @@ const CommentTile: React.FC<CommentTileProps> = ({
             screenType={screenType}
           />
           <LikeButton
-            filled={commentObject.user_reaction !== null}
+            initialLikeState={commentObject.user_reaction !== null}
             onPress={() => {
-              handleLikeUnlikeComment(commentObject);
-              setShouldUpdateParent(true);
+              handleLikeUnlikeComment(commentObject).then(() => {
+                setShouldUpdateParent(true);
+              });
             }}
             style={styles.likeButton}
           />
-- 
cgit v1.2.3-70-g09d2

