aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/SocialMediaTaggs.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screens/profile/SocialMediaTaggs.tsx b/src/screens/profile/SocialMediaTaggs.tsx
index 5634c251..b058e38d 100644
--- a/src/screens/profile/SocialMediaTaggs.tsx
+++ b/src/screens/profile/SocialMediaTaggs.tsx
@@ -82,6 +82,7 @@ const SocialMediaTaggs: React.FC<SocialMediaTaggsProps> = ({
colors={[AVATAR_GRADIENT.start, AVATAR_GRADIENT.end]}>
<StatusBar barStyle={'light-content'} />
{/* Cropping the scroll view to mimic the presence of a header while preserving the gradient background */}
+
{accountData?.posts && accountData.posts.length > 0 ? (
<View
// we want a slightly bigger header here for the avatar image
@@ -104,7 +105,11 @@ const SocialMediaTaggs: React.FC<SocialMediaTaggsProps> = ({
post={post as TwitterPostType}
/>
) : (
- <TaggPost key={index} post={post as SimplePostType} />
+ <TaggPost
+ key={index}
+ post={post as SimplePostType}
+ social={socialMediaType}
+ />
),
)}
</ScrollView>