From a8c0003fc13cb7d4778f65e8702b1c3c5fd1cc59 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Mon, 10 Apr 2023 17:15:32 +0200 Subject: [PATCH] fix: linter issue --- src/components/CoverImage.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/CoverImage.tsx b/src/components/CoverImage.tsx index b5927082..7f9e690b 100644 --- a/src/components/CoverImage.tsx +++ b/src/components/CoverImage.tsx @@ -55,6 +55,8 @@ function CoverImage({ return { imageSize, canvasSize }; }, [blurRadius, margin]); + const skiaImage = useMemo(() => (image || fallback), [image, fallback]); + return ( @@ -65,18 +67,16 @@ function CoverImage({ - {(image || fallback) ? ( + {skiaImage ? ( <> - + }> - {(image || fallback) ? ( - - - - ) : null} + + + ) : null}