diff options
author | Ivan Chen <ivan@tagg.id> | 2021-06-25 20:58:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 20:58:56 -0400 |
commit | 5480267b285812c094246bb941c6deaf83f53ff5 (patch) | |
tree | 17f2e23576c000bcc90d840d14b8abc3bb9bec24 /src/components/profile/PublicProfile.tsx | |
parent | 981051448fee6197544383e535fea7a72827d41d (diff) | |
parent | dcf45600b6e2be7820ed2d8c0f44603624f1e719 (diff) |
Merge pull request #475 from IvanIFChen/tma948-video-playback
[TMA-948] Viewing Videos
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], |