Skip to content
Snippets Groups Projects
Commit 0d28c99b authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

woops

parent f6daf154
No related branches found
No related tags found
1 merge request!32User page link
Pipeline #38822 passed
......@@ -6,6 +6,7 @@ import { Skeleton } from "@/components/ui/skeleton"
import { UserAvatar } from "@/components/user-avatar"
import { db } from "@/lib/db"
import { getFavoriteGames } from "@/lib/igdb"
import { getCurrentUser } from "@/lib/session"
import { IGame } from "@/types/igdb-types"
import { redirect } from "next/navigation"
......@@ -13,10 +14,6 @@ import { redirect } from "next/navigation"
export default async function User({ params }: { params: { userid: string } }) {
const user = await getCurrentUser()
/* if (user?.username !== params.userid) {
redirect('/')
} */
const sessionUser = await db.user.findFirst({
where: {
id: user?.id
......@@ -41,7 +38,6 @@ export default async function User({ params }: { params: { userid: string } }) {
redirect('/')
}
let favoritegames = undefined
let playingGames = undefined
let finishedGames = undefined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment