Fix color by id if no image found

This commit is contained in:
jeffvli 2023-07-23 03:50:55 -07:00
parent 2c9509b58d
commit 03a4a1da55

View File

@ -35,6 +35,7 @@ export const useFastAverageColor = (args: {
return setColor('rgba(0, 0, 0, 0)'); return setColor('rgba(0, 0, 0, 0)');
}); });
} else if (srcLoaded) { } else if (srcLoaded) {
idRef.current = id;
return setColor('var(--placeholder-bg)'); return setColor('var(--placeholder-bg)');
} }