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) => {