diff --git a/dashboard/src/pages/meetKevin/Home.tsx b/dashboard/src/pages/meetKevin/Home.tsx index 4710ef0..30928b5 100644 --- a/dashboard/src/pages/meetKevin/Home.tsx +++ b/dashboard/src/pages/meetKevin/Home.tsx @@ -141,13 +141,13 @@ export default function MeetKevinHome() { {/* Top conviction this week */} - {dashboard && dashboard.top_conviction_week.length > 0 && ( + {dashboard && (dashboard.top_conviction_7d ?? []).length > 0 && (

Top Conviction — Last 7 Days

- {dashboard.top_conviction_week.map( + {(dashboard.top_conviction_7d ?? []).map( (row: { symbol: string; max_conviction: number; diff --git a/dashboard/src/types/meetKevin.ts b/dashboard/src/types/meetKevin.ts index 0982e15..dc67d4a 100644 --- a/dashboard/src/types/meetKevin.ts +++ b/dashboard/src/types/meetKevin.ts @@ -107,11 +107,13 @@ export interface PipelineHealth { export interface DashboardData { latest_video: VideoSummary | null; latest_analysis: VideoAnalysis | null; - top_conviction_week: { - symbol: string; - max_conviction: number; - mention_count: number; - }[]; + top_conviction_7d: + | { + symbol: string; + max_conviction: number; + mention_count: number; + }[] + | null; outlook_trend_14d: { day: string; direction: MarketOutlook;