Remove duplicate user declaration (old mock data)

cgen-6a05577b5c9b4bfcb854912093b0200d
This commit is contained in:
Builder.io 2025-08-06 03:21:07 +00:00
parent 0d1f585957
commit 7b1fd9b63a

View file

@ -121,18 +121,16 @@ export default function Dashboard() {
} }
}; };
// Mock user data // Return early if not authenticated
const user = { if (authLoading || !user || !profile) {
name: "Alex Thompson", return (
role: "Game Developer", <LoadingScreen
level: 15, message="Loading your dashboard..."
xp: 2450, showProgress={true}
nextLevelXp: 3000, duration={2000}
avatar: />
"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face", );
joinDate: "March 2024", }
streak: 12,
};
const stats = [ const stats = [
{ {