diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-09 18:29:13 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-09 18:29:13 -0400 |
commit | 9bbba285b989cd6bf1a9543b4fa0e97e2379616c (patch) | |
tree | e3a9f38c168fd6175ebacd72e56fc0c3169f27c3 | |
parent | d05ae427027003c714911a2e253bba535c3c8749 (diff) |
Change edit to go back to profile
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 7 |
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, + }); } }; |