From e0cbba6dc589ca718fa0d730f1df8f934e53905b Mon Sep 17 00:00:00 2001 From: Christopher Mayor Date: Tue, 28 Apr 2026 07:15:59 -0700 Subject: [PATCH] fix: type safety for profile page, exclude e2e from tsconfig --- src/app/(main)/profile/page.tsx | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(main)/profile/page.tsx b/src/app/(main)/profile/page.tsx index f0644fa..90e2531 100644 --- a/src/app/(main)/profile/page.tsx +++ b/src/app/(main)/profile/page.tsx @@ -118,7 +118,7 @@ export default function ProfilePage() { ) } - const user = session.user + const user = session!.user! const statsCards = [ { label: "Comparisons", value: stats?.totalComparisons ?? 0, icon: BarChart3 }, { label: "Total Views", value: stats?.totalViews ?? 0, icon: Eye }, diff --git a/tsconfig.json b/tsconfig.json index cf9c65d..7326c39 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,5 +30,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "e2e", "playwright.config.ts"] }