From aacb9237466c42b2e26f52a6588e6307c137db6e Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Mon, 2 Nov 2020 10:19:44 -0800 Subject: [BUG FIX] -> 1 : Bottom of moments screen cut off 2 : Social media data double check [FRONTEND] (#84) * BUG FIX -> 1 : Bottom of moments screen cut off 2 : Check for existence of accountData before displaying the same * small change * added more exception checking * FIX package error Co-authored-by: Ivan Chen --- src/screens/profile/SocialMediaTaggs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/screens') diff --git a/src/screens/profile/SocialMediaTaggs.tsx b/src/screens/profile/SocialMediaTaggs.tsx index 4b63b843..f43c30df 100644 --- a/src/screens/profile/SocialMediaTaggs.tsx +++ b/src/screens/profile/SocialMediaTaggs.tsx @@ -51,15 +51,15 @@ const SocialMediaTaggs: React.FC = ({route}) => { - {(accountData.posts as Array< + {(accountData?.posts as Array< SimplePostType | TwitterPostType >).map((post, index) => socialMediaType === 'Twitter' ? ( ) : ( -- cgit v1.2.3-70-g09d2