Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: better meta image support for tweet card

Dillion Verma59ef376437f7
diff --git a/registry/components/magicui/tweet-card.tsx b/registry/components/magicui/tweet-card.tsx
index 9b09dc32..5d9c6121 100644
--- a/registry/components/magicui/tweet-card.tsx
+++ b/registry/components/magicui/tweet-card.tsx
@@ -208,7 +208,7 @@ export const TweetMedia = ({ tweet }: { tweet: EnrichedTweet }) => (
{!tweet.video &&
!tweet.photos &&
// @ts-ignore
- tweet?.card?.binding_values.thumbnail_image_large.image_value.url && (
+ tweet?.card?.binding_values?.thumbnail_image_large?.image_value.url && (
<img
// @ts-ignore
src={tweet.card.binding_values.thumbnail_image_large.image_value.url}