Add streak metrics to profile component

cgen-8af654bdc52b4304980100342455b265
This commit is contained in:
Builder.io 2025-10-04 10:41:08 +00:00
parent 198f3f8369
commit cbe652fbc2

View file

@ -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');