From 03a4a1da55ad81e6d83aebe360931406f76461bf Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 23 Jul 2023 03:50:55 -0700 Subject: [PATCH] Fix color by id if no image found --- src/renderer/hooks/use-fast-average-color.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/hooks/use-fast-average-color.tsx b/src/renderer/hooks/use-fast-average-color.tsx index d1ae342f..bf4aa04e 100644 --- a/src/renderer/hooks/use-fast-average-color.tsx +++ b/src/renderer/hooks/use-fast-average-color.tsx @@ -35,6 +35,7 @@ export const useFastAverageColor = (args: { return setColor('rgba(0, 0, 0, 0)'); }); } else if (srcLoaded) { + idRef.current = id; return setColor('var(--placeholder-bg)'); }