aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/MomentCommentsScreen.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx
index 764b9228..58422f0f 100644
--- a/src/screens/profile/MomentCommentsScreen.tsx
+++ b/src/screens/profile/MomentCommentsScreen.tsx
@@ -30,8 +30,11 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
const navigation = useNavigation();
const {moment_id, screenType} = route.params;
+ //Receives comment length from child CommentsContainer
const [commentsLength, setCommentsLength] = useState<number>(0);
const [newCommentsAvailable, setNewCommentsAvailable] = React.useState(true);
+
+ //Keeps track of the current comments object in focus so that the application knows which comment to post a reply to
const [commentObjectInFocus, setCommentObjectInFocus] = useState<
CommentType | undefined
>(undefined);
@@ -70,7 +73,7 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
objectId={
commentObjectInFocus ? commentObjectInFocus.comment_id : moment_id
}
- isThreadInFocus={commentObjectInFocus ? true : false}
+ isCommentInFocus={commentObjectInFocus ? true : false}
/>
</View>
</SafeAreaView>