diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-11 17:55:43 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-11 17:55:43 -0400 |
commit | 58ab56d0b03491dd062d09e2ee96fe8f88e74bc9 (patch) | |
tree | 38f836031c042e254d412b60ba7436431379bbeb /src/components/comments/CommentTile.tsx | |
parent | 69c07634befdad4be416df843ecb803e760c5883 (diff) |
fixed issue, basic functionality working
Diffstat (limited to 'src/components/comments/CommentTile.tsx')
-rw-r--r-- | src/components/comments/CommentTile.tsx | 7 |
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} /> |