diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 03c3c6b..7615d8e 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -39,7 +39,7 @@ export default function Layout({ children }: { children: ReactNode }) { isActive ? 'active' : ''}> {label} - {to === '/market' && alertCount ? ( + {to === '/market' && alertCount != null && alertCount > 0 ? ( ))} -
{user.name || user.email}
+
{user.name ?? user.email}
diff --git a/frontend/src/pages/RateAnalysis.tsx b/frontend/src/pages/RateAnalysis.tsx index 1ebf4bf..5c7b874 100644 --- a/frontend/src/pages/RateAnalysis.tsx +++ b/frontend/src/pages/RateAnalysis.tsx @@ -354,7 +354,7 @@ function buildTimelineTraces(entries: TimelineEntry[]) { mode: 'lines+markers' as const, name: room, x: pts.map(p => p.scraped_at), - y: pts.map(p => p.price_incl), + y: pts.map(p => p.price_incl ?? null), line: { color: colors[i % colors.length], width: 2 }, marker: { size: 5, color: colors[i % colors.length] }, hovertemplate: `${room}: £%{y:.2f}`,