From 9191dd7cae7b462f1c559604f3767ad9863db7c9 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Wed, 4 Sep 2024 17:29:48 +0200 Subject: [PATCH] fix catalog gifs --- src/components/catalog-row/catalog-row.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/catalog-row/catalog-row.tsx b/src/components/catalog-row/catalog-row.tsx index feed9225..8ed80ba3 100644 --- a/src/components/catalog-row/catalog-row.tsx +++ b/src/components/catalog-row/catalog-row.tsx @@ -66,7 +66,9 @@ export const CatalogPostMedia = ({ commentMediaInfo, isOutOfFeed, linkWidth, lin let thumbnailComponent: React.ReactNode = null; - if (type === 'image' && !hasError) { + if (type === 'gif' && gifFrameUrl && !hasError) { + thumbnailComponent = ; + } else if (type === 'image' && !hasError) { thumbnailComponent = ; } else if (type === 'video' && !hasError) { thumbnailComponent = thumbnail ? ( @@ -79,8 +81,6 @@ export const CatalogPostMedia = ({ commentMediaInfo, isOutOfFeed, linkWidth, lin thumbnailComponent = ; } else if (type === 'iframe' && iframeThumbnail && !hasError) { thumbnailComponent = ; - } else if (type === 'gif' && !hasError) { - thumbnailComponent = ; } else if (type === 'audio') { thumbnailComponent =