diff --git a/app/(dashboard)/dashboard/page.tsx b/app/(dashboard)/dashboard/page.tsx index 82dfc02..db82e1a 100644 --- a/app/(dashboard)/dashboard/page.tsx +++ b/app/(dashboard)/dashboard/page.tsx @@ -31,7 +31,7 @@ export default async function DashboardPage() { const user = await getCurrentUser() if (!user) { - return redirect(authOptions.pages.signIn) + redirect(authOptions.pages.signIn) } const posts = await getPostsForUser(user.id) diff --git a/app/(dashboard)/dashboard/settings/page.tsx b/app/(dashboard)/dashboard/settings/page.tsx index 8ef76f6..7270556 100644 --- a/app/(dashboard)/dashboard/settings/page.tsx +++ b/app/(dashboard)/dashboard/settings/page.tsx @@ -10,7 +10,7 @@ export default async function SettingsPage() { const user = await getCurrentUser() if (!user) { - return redirect(authOptions.pages.signIn) + redirect(authOptions.pages.signIn) } return ( diff --git a/app/(editor)/editor/[postId]/page.tsx b/app/(editor)/editor/[postId]/page.tsx index e279ee6..1566b2d 100644 --- a/app/(editor)/editor/[postId]/page.tsx +++ b/app/(editor)/editor/[postId]/page.tsx @@ -23,7 +23,7 @@ export default async function EditorPage({ params }: EditorPageProps) { const user = await getCurrentUser() if (!user) { - return redirect(authOptions.pages.signIn) + redirect(authOptions.pages.signIn) } const post = await getPostForUser(params.postId, user.id)