fix: do not return redirect

This commit is contained in:
shadcn 2022-11-07 16:43:59 +04:00
parent 0f73a7509f
commit 54971bb980
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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 (

View file

@ -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)