aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/comments')
-rw-r--r--src/components/comments/CommentTile.tsx7
1 files changed, 4 insertions, 3 deletions
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}
/>