diff --git a/apps/web/src/component/home/SummaryInsightBox.tsx b/apps/web/src/component/home/SummaryInsightBox.tsx index ff49a178..7a5eb039 100644 --- a/apps/web/src/component/home/SummaryInsightBox.tsx +++ b/apps/web/src/component/home/SummaryInsightBox.tsx @@ -17,7 +17,7 @@ type SummaryInsightBoxProps = { export function SummaryInsightBox({ type, insightArr }: SummaryInsightBoxProps) { const transformPoints = transformPointsFun(insightArr); - + if (transformPoints.length === 0) return; return (
- {transformPoints.map((point, idx) => ( - - ))} + {transformPoints + .filter((v) => v.point != null) + .map((point, idx) => ( + + ))}
);