aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-11-02 10:19:44 -0800
committerGitHub <noreply@github.com>2020-11-02 13:19:44 -0500
commitaacb9237466c42b2e26f52a6588e6307c137db6e (patch)
tree7086eaf2b96e1bc57121f4cc1230523102b3559e /src/screens
parent24c269c9d52ec7cf2cd383a8d7c3aee43ed475c1 (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.tsx6
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}
/>
) : (