diff options
author | Brian Kim <brian@tagg.id> | 2021-06-19 03:06:15 +0900 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-06-19 03:06:15 +0900 |
commit | 5e021bada5b082ee40195399778bf68bbca3d97b (patch) | |
tree | 00b0e9e864d3fe93d611397a5301f1026b9af900 /src/components/profile/PublicProfile.tsx | |
parent | 1c84e16b3fc9ea891d8ed11c65aa904e637ea434 (diff) | |
parent | 45b46077191c0515c250b592b9da11ae42d46f51 (diff) |
Merge branch 'image-cropper' of github-brian-tagg:shravyaramesh/Frontend into image-cropper
Diffstat (limited to 'src/components/profile/PublicProfile.tsx')
-rw-r--r-- | src/components/profile/PublicProfile.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/profile/PublicProfile.tsx b/src/components/profile/PublicProfile.tsx index 8a80c56f..6b991d7c 100644 --- a/src/components/profile/PublicProfile.tsx +++ b/src/components/profile/PublicProfile.tsx @@ -87,7 +87,9 @@ const PublicProfile: React.FC<ContentProps> = ({ scrollViewRef.current ) { setScrollEnabled(false); - scrollViewRef.current.scrollTo({y: 0}); + if (scrollViewRef && scrollViewRef.current) { + scrollViewRef.current.scrollTo({y: 0}); + } navigation.navigate('MomentUploadPrompt', { screenType, momentCategory: momentCategories[0], |