diff options
| author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-11-02 10:19:44 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-02 13:19:44 -0500 |
| commit | aacb9237466c42b2e26f52a6588e6307c137db6e (patch) | |
| tree | 7086eaf2b96e1bc57121f4cc1230523102b3559e /src/screens | |
| parent | 24c269c9d52ec7cf2cd383a8d7c3aee43ed475c1 (diff) | |
[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 <ivan@thetaggid.com>
Diffstat (limited to 'src/screens')
| -rw-r--r-- | src/screens/profile/SocialMediaTaggs.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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<SocialMediaTaggsProps> = ({route}) => { <SocialMediaInfo fullname={name} type={socialMediaType} - handle={accountData.handle} + handle={accountData?.handle} /> - {(accountData.posts as Array< + {(accountData?.posts as Array< SimplePostType | TwitterPostType >).map((post, index) => socialMediaType === 'Twitter' ? ( <TwitterTaggPost key={index} - ownerHandle={accountData.handle || '_'} + ownerHandle={accountData?.handle || '_'} post={post as TwitterPostType} /> ) : ( |
