From 0b523b7274d8da8d41c033720e281201d6d4850a Mon Sep 17 00:00:00 2001 From: Christopher Mayor Date: Sun, 26 Apr 2026 16:43:25 -0700 Subject: [PATCH] fix: replace mockUser/mockComparisons with proper local variables in profile page --- src/app/(main)/profile/page.tsx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/app/(main)/profile/page.tsx b/src/app/(main)/profile/page.tsx index 5c3a9e4..0974e74 100644 --- a/src/app/(main)/profile/page.tsx +++ b/src/app/(main)/profile/page.tsx @@ -33,18 +33,26 @@ interface UserStats { } export default function ProfilePage() { + // TODO: Replace with real auth session data + const user = { name: "Demo User", email: "demo@example.com", avatar: "" } + const stats = [ + { label: "Comparisons", value: "0", icon: BarChart3 }, + { label: "Total Views", value: "0", icon: Eye }, + ] + const comparisons: Comparison[] = [] + return (
- + - {mockUser.name.split(" ").map((n) => n[0]).join("")} + {user.name.split(" ").map((n) => n[0]).join("")}
-

{mockUser.name}

-

{mockUser.email}

+

{user.name}

+

{user.email}

@@ -75,9 +83,9 @@ export default function ProfilePage() {
- {mockComparisons.length > 0 ? ( + {comparisons.length > 0 ? (
- {mockComparisons.map((comparison) => ( + {comparisons.map((comparison) => (