aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-11 17:55:43 -0400
committerIvan Chen <ivan@tagg.id>2021-05-11 17:55:43 -0400
commit58ab56d0b03491dd062d09e2ee96fe8f88e74bc9 (patch)
tree38f836031c042e254d412b60ba7436431379bbeb /src/components/comments
parent69c07634befdad4be416df843ecb803e760c5883 (diff)
fixed issue, basic functionality working
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}
/>