fix: type safety for profile page, exclude e2e from tsconfig
This commit is contained in:
@@ -118,7 +118,7 @@ export default function ProfilePage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = session.user
|
const user = session!.user!
|
||||||
const statsCards = [
|
const statsCards = [
|
||||||
{ label: "Comparisons", value: stats?.totalComparisons ?? 0, icon: BarChart3 },
|
{ label: "Comparisons", value: stats?.totalComparisons ?? 0, icon: BarChart3 },
|
||||||
{ label: "Total Views", value: stats?.totalViews ?? 0, icon: Eye },
|
{ label: "Total Views", value: stats?.totalViews ?? 0, icon: Eye },
|
||||||
|
|||||||
@@ -30,5 +30,5 @@
|
|||||||
".next/dev/types/**/*.ts",
|
".next/dev/types/**/*.ts",
|
||||||
"**/*.mts"
|
"**/*.mts"
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules", "e2e", "playwright.config.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user