From affbe860817be9c8dc6df05da8343dff426243d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 13 Sep 2024 23:15:37 +0200 Subject: [PATCH] put the logic where it belongs to MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/still-image.tsx | 2 +- packages/pl-fe/src/components/ui/emoji/emoji.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/components/still-image.tsx b/packages/pl-fe/src/components/still-image.tsx index 4ca3e767a..c84724fb9 100644 --- a/packages/pl-fe/src/components/still-image.tsx +++ b/packages/pl-fe/src/components/still-image.tsx @@ -34,7 +34,7 @@ const StillImage: React.FC = ({ const img = useRef(null); const hoverToPlay = ( - src && !autoPlayGif && ((isGif && !src.endsWith('.png')) || src.endsWith('.gif') || src.startsWith('blob:')) + src && !autoPlayGif && ((isGif) || src.endsWith('.gif') || src.startsWith('blob:')) ); const handleImageLoad = () => { diff --git a/packages/pl-fe/src/components/ui/emoji/emoji.tsx b/packages/pl-fe/src/components/ui/emoji/emoji.tsx index d760586e9..a65b3a566 100644 --- a/packages/pl-fe/src/components/ui/emoji/emoji.tsx +++ b/packages/pl-fe/src/components/ui/emoji/emoji.tsx @@ -28,7 +28,7 @@ const Emoji: React.FC = (props): JSX.Element | null => {