Removed redundant erroneous check

This commit is contained in:
Andre Vallestero 2020-05-11 11:29:35 -04:00
parent 38381ba287
commit 9155469e8a

View file

@ -163,10 +163,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
if (isImage(post.url)) { if (isImage(post.url)) {
if (post.url.includes('pictshare')) { if (post.url.includes('pictshare')) {
return pictshareImage(post.url, thumbnail); return pictshareImage(post.url, thumbnail);
} else if ( } else if (post.thumbnail_url) {
post.thumbnail_url &&
post.thumbnail_url.includes('pictshare')
) {
return pictshareImage(post.thumbnail_url, thumbnail); return pictshareImage(post.thumbnail_url, thumbnail);
} else { } else {
return post.url; return post.url;