diff --git a/src/components/Post/Embed/ImageEmbed.tsx b/src/components/Post/Embed/ImageEmbed.tsx index 235a82ebaf..073c47fbb1 100644 --- a/src/components/Post/Embed/ImageEmbed.tsx +++ b/src/components/Post/Embed/ImageEmbed.tsx @@ -59,7 +59,7 @@ export function ImageEmbed({ // Captured from AutoSizedImage so the peek-commit handler can reuse the same // ref + dims that a tap would — keeps the lightbox's return animation intact. - const singleContainerRef = useRef | null>(null) + const singleContainerRef = useRef(null) const singleDimsRef = useRef(null) if (images.length > 0) { @@ -71,7 +71,7 @@ export function ImageEmbed({ })) const onPress = ( index: number, - refs: AnimatedRef[], + refs: AnimatedRef[], fetchedDims: (Dimensions | null)[], ) => { if (postContext) {