aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/CaptionScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-09 18:29:13 -0400
committerIvan Chen <ivan@tagg.id>2021-07-09 18:29:13 -0400
commit9bbba285b989cd6bf1a9543b4fa0e97e2379616c (patch)
treee3a9f38c168fd6175ebacd72e56fc0c3169f27c3 /src/screens/profile/CaptionScreen.tsx
parentd05ae427027003c714911a2e253bba535c3c8749 (diff)
Change edit to go back to profile
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r--src/screens/profile/CaptionScreen.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx
index 62d2a4c7..484070d2 100644
--- a/src/screens/profile/CaptionScreen.tsx
+++ b/src/screens/profile/CaptionScreen.tsx
@@ -140,8 +140,11 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => {
}
}, 500);
} else {
- // if editing, simply go back to (most likely) indiv moment
- navigation.goBack();
+ // if editing, simply go back to profile screen
+ navigation.navigate('Profile', {
+ userXId: undefined,
+ screenType: route.params.screenType,
+ });
}
};