diff --git a/client/pages/Profile.tsx b/client/pages/Profile.tsx index b888a538..79fe2256 100644 --- a/client/pages/Profile.tsx +++ b/client/pages/Profile.tsx @@ -161,6 +161,9 @@ export default function Profile() { }, ]); + const currentStreak = profile?.current_streak ?? 0; + const longestStreak = profile?.longest_streak ?? currentStreak; + useEffect(() => { if (!authLoading && !user) { navigate('/login');