aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/IndividualMoment.tsx2
-rw-r--r--src/screens/profile/MomentCommentsScreen.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx
index 91f76f9b..b76f36d0 100644
--- a/src/screens/profile/IndividualMoment.tsx
+++ b/src/screens/profile/IndividualMoment.tsx
@@ -91,7 +91,7 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({
title="Close"
buttonStyle={styles.button}
onPress={() => {
- navigation.navigate('Profile', {isProfileView: isProfileView});
+ navigation.pop();
}}
/>
</View>
diff --git a/src/screens/profile/MomentCommentsScreen.tsx b/src/screens/profile/MomentCommentsScreen.tsx
index 30dde8b4..0d685ad1 100644
--- a/src/screens/profile/MomentCommentsScreen.tsx
+++ b/src/screens/profile/MomentCommentsScreen.tsx
@@ -58,7 +58,7 @@ const MomentCommentsScreen: React.FC<MomentCommentsScreenProps> = ({route}) => {
buttonStyle={styles.button}
titleStyle={styles.buttonText}
onPress={() => {
- navigation.goBack();
+ navigation.pop();
}}
/>
<Text style={styles.headerText}>