diff --git a/ts/components/Lightbox.dom.tsx b/ts/components/Lightbox.dom.tsx index 497ce12da1..66288be834 100644 --- a/ts/components/Lightbox.dom.tsx +++ b/ts/components/Lightbox.dom.tsx @@ -161,7 +161,7 @@ export function Lightbox({ const incrementalUrl = attachment?.incrementalUrl; const contentType = attachment?.contentType; - const isAttachmentGIF = isGIF(attachment ? [attachment] : undefined); + const isAttachmentGIF = isGIF(attachment); const isDownloading = attachment && isIncremental(attachment) && diff --git a/ts/components/StoryImage.dom.tsx b/ts/components/StoryImage.dom.tsx index 30e3c240de..0f3f81a771 100644 --- a/ts/components/StoryImage.dom.tsx +++ b/ts/components/StoryImage.dom.tsx @@ -128,7 +128,7 @@ export function StoryImage({ /> ); } else if (!isThumbnail && isSupportedVideo) { - const shouldLoop = isGIF(attachment ? [attachment] : undefined); + const shouldLoop = isGIF(attachment); storyElement = (