aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TaggPost.tsx
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/components/taggs/TaggPost.tsx
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/components/taggs/TaggPost.tsx')
-rw-r--r--src/components/taggs/TaggPost.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/taggs/TaggPost.tsx b/src/components/taggs/TaggPost.tsx
index 071dbfc4..6ad9158b 100644
--- a/src/components/taggs/TaggPost.tsx
+++ b/src/components/taggs/TaggPost.tsx
@@ -14,7 +14,7 @@ const TaggPost: React.FC<TaggPostProps> = ({post}) => {
// Post with image and footer that shows caption
return (
<View style={styles.photoContainer}>
- {post.media_url.length === 1 && post.media_url[0] !== null ? (
+ {post.media_url?.length === 1 && post.media_url[0] !== null ? (
<Image
style={styles.imageWithMargin}
source={{uri: post.media_url[0]}}