diff --git a/site/source/pages/Stats/SatisfactionChart.tsx b/site/source/pages/Stats/SatisfactionChart.tsx index 47b6f6702..2e0207574 100644 --- a/site/source/pages/Stats/SatisfactionChart.tsx +++ b/site/source/pages/Stats/SatisfactionChart.tsx @@ -50,7 +50,7 @@ export default function SatisfactionChart({ data }: SatisfactionChartProps) { - } /> + {SatisfactionStyle.map(([level, { emoji, color }]) => ( { - if (!active || !payload) { + const data = (payload && payload.length > 0 && payload[0].payload) || null + + if (!active || !data) { return null } - const data = payload[0].payload return (