From 3d4ef30129d54ac75a08230904bbdd4ac28bb072 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Fri, 21 Jul 2023 17:02:12 +0530 Subject: [PATCH] fix: prevent flash of previously rendered card --- app/components/HoverPreview/HoverPreview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/HoverPreview/HoverPreview.tsx b/app/components/HoverPreview/HoverPreview.tsx index 40a1a7077a..3f204cb4ab 100644 --- a/app/components/HoverPreview/HoverPreview.tsx +++ b/app/components/HoverPreview/HoverPreview.tsx @@ -111,7 +111,7 @@ function HoverPreviewInternal({ element, onClose }: Props) { : anchorBounds.left; const leftOffset = anchorBounds.left - left; - if (!data && loading) { + if (loading) { return ; }