From 8a3a4a94d7b5c8d0c75c9522e03c808d4543b0b0 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 10:40:33 +0000 Subject: [PATCH] Add streak helpers to Dashboard cgen-a3e020f8a0e7483b8b163116103e50b8 --- client/pages/Dashboard.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/pages/Dashboard.tsx b/client/pages/Dashboard.tsx index ed193d29..8a8bc1d4 100644 --- a/client/pages/Dashboard.tsx +++ b/client/pages/Dashboard.tsx @@ -98,6 +98,10 @@ export default function Dashboard() { () => searchParams.get("tab") ?? "profile", ); + const currentStreak = profile?.current_streak ?? 0; + const longestStreak = profile?.longest_streak ?? currentStreak; + const streakLabel = `${currentStreak} day${currentStreak === 1 ? "" : "s"} streak`; + const linkedProviderMap = useMemo(() => { const map: Record = {}; linkedProviders.forEach((lp) => {