diff --git a/client/app/routes/Charts/ChartLayout.tsx b/client/app/routes/Charts/ChartLayout.tsx index 446f7d1..90858bd 100644 --- a/client/app/routes/Charts/ChartLayout.tsx +++ b/client/app/routes/Charts/ChartLayout.tsx @@ -40,7 +40,7 @@ export default function ChartLayout({ useEffect(() => { if ((data?.items?.length ?? 0) === 0) return; - const img = (data.items[0] as any)?.item.image; + const img = (data.items[0] as any)?.item?.image; if (!img) return; average(imageUrl(img, "small"), { amount: 1 }).then((color) => {