diff --git a/src/features/post/inFeed/compact/CompactFeedPostMedia.tsx b/src/features/post/inFeed/compact/CompactFeedPostMedia.tsx index 9563083e6b..5b1dd83f88 100644 --- a/src/features/post/inFeed/compact/CompactFeedPostMedia.tsx +++ b/src/features/post/inFeed/compact/CompactFeedPostMedia.tsx @@ -2,11 +2,10 @@ import { ComponentProps, useMemo } from "react"; import Media, { getPostMedia } from "../../../media/gallery/Media"; import { PostView } from "lemmy-js-client"; -export default function CompactFeedPostMedia({ - post, - ...rest -}: Omit, "src"> & { post: PostView }) { - const src = useMemo(() => getPostMedia(post), [post]); +export default function CompactFeedPostMedia( + props: Omit, "src"> & { post: PostView }, +) { + const src = useMemo(() => getPostMedia(props.post), [props.post]); - if (src) return ; + if (src) return ; }