diff --git a/src/components/comment-media/comment-media.tsx b/src/components/comment-media/comment-media.tsx index 329a0739..ebdaf4ec 100644 --- a/src/components/comment-media/comment-media.tsx +++ b/src/components/comment-media/comment-media.tsx @@ -53,7 +53,9 @@ const Thumbnail = ({ commentMediaInfo, isFloatingEmbed, post, setShowThumbnail } const gifFrameUrl = useFetchGifFirstFrame(type === 'gif' ? url : undefined); const hasThumbnail = getHasThumbnail(commentMediaInfo, url); - if (type === 'image') { + if (type === 'gif' && gifFrameUrl) { + thumbnailComponent = setShowThumbnail(false)} />; + } else if (type === 'image') { thumbnailComponent = setShowThumbnail(false)} />; } else if (type === 'video') { thumbnailComponent = thumbnail ? ( @@ -66,10 +68,6 @@ const Thumbnail = ({ commentMediaInfo, isFloatingEmbed, post, setShowThumbnail } thumbnailComponent = setShowThumbnail(false)} />; } else if (type === 'iframe') { thumbnailComponent = iframeThumbnail ? setShowThumbnail(false)} /> : null; - } else if (type === 'gif' && gifFrameUrl) { - thumbnailComponent = setShowThumbnail(false)} />; - } else if (type === 'gif' && !gifFrameUrl) { - thumbnailComponent = setShowThumbnail(false)} />; } else if (type === 'audio') { thumbnailComponent =