aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-07-28 11:42:04 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-07-28 11:42:04 -0700
commitf62f18884b2b1388e9dda4b2a4e01ad6136627c6 (patch)
tree946617bad8fc4d5f976ade6c8a810d624477c45f /src
parentf1a0adafa0bbff400081349b17f95d0625778319 (diff)
Remove unused variable
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/MomentPost.tsx5
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>