UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
🐛 fix: update tweet error
Dillion Vermac2362dde46f4
diff --git a/registry/components/magicui/tweet-card.tsx b/registry/components/magicui/tweet-card.tsxindex 0c4d68c8..9b09dc32 100644--- a/registry/components/magicui/tweet-card.tsx+++ b/registry/components/magicui/tweet-card.tsx@@ -205,14 +205,16 @@ export const TweetMedia = ({ tweet }: { tweet: EnrichedTweet }) => (<div className="shrink-0 snap-center sm:w-2" /></div>)}-- {!tweet.video && !tweet.photos && (- <img- // @ts-ignore- src={tweet.card.binding_values.thumbnail_image_large.image_value.url}- className="h-64 rounded-xl border object-cover shadow-sm"- />- )}+ {!tweet.video &&+ !tweet.photos &&+ // @ts-ignore+ tweet?.card?.binding_values.thumbnail_image_large.image_value.url && (+ <img+ // @ts-ignore+ src={tweet.card.binding_values.thumbnail_image_large.image_value.url}+ className="h-64 rounded-xl border object-cover shadow-sm"+ />+ )}</div>);