diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-07-28 11:42:04 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-07-28 11:42:04 -0700 |
commit | f62f18884b2b1388e9dda4b2a4e01ad6136627c6 (patch) | |
tree | 946617bad8fc4d5f976ade6c8a810d624477c45f | |
parent | f1a0adafa0bbff400081349b17f95d0625778319 (diff) |
Remove unused variable
-rw-r--r-- | src/components/moments/MomentPost.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index aa5a710c..f18fec01 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -73,9 +73,6 @@ const MomentPost: React.FC<MomentPostProps> = ({ const [fadeValue, setFadeValue] = useState<Animated.Value<number>>( new Animated.Value(0), ); - const [commentCount, _setCommentCount] = useState<number>( - moment.comments_count, - ); const [aspectRatio, setAspectRatio] = useState<number>(1); const [momentTagId, setMomentTagId] = useState<string>(''); @@ -337,7 +334,7 @@ const MomentPost: React.FC<MomentPostProps> = ({ <View style={styles.commentsCountContainer}> <CommentsCount momentId={moment.moment_id} - count={commentCount} + count={moment.comments_count} screenType={screenType} /> </View> |