fix: gradient background on top charts (#181)

This commit is contained in:
Gabe Farrell 2026-01-26 13:03:27 -05:00 committed by GitHub
parent c8a11ef018
commit 35e104c97e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ export default function ChartLayout<T>({
useEffect(() => {
if ((data?.items?.length ?? 0) === 0) return;
const img = (data.items[0] as any)?.image;
const img = (data.items[0] as any)?.item.image;
if (!img) return;
average(imageUrl(img, "small"), { amount: 1 }).then((color) => {