fix: type safety for profile page, exclude e2e from tsconfig

This commit is contained in:
Christopher Mayor
2026-04-28 07:15:59 -07:00
parent 50b9be2f1c
commit e0cbba6dc5
2 changed files with 2 additions and 2 deletions

View File

@@ -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 },

View File

@@ -30,5 +30,5 @@
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "e2e", "playwright.config.ts"]
}