From 9bbba285b989cd6bf1a9543b4fa0e97e2379616c Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 9 Jul 2021 18:29:13 -0400 Subject: Change edit to go back to profile --- src/screens/profile/CaptionScreen.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 = ({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, + }); } }; -- cgit v1.2.3-70-g09d2