diff --git a/src/app/profile/[slug]/page.tsx b/src/app/profile/[slug]/page.tsx index d6b94e0..23fd859 100644 --- a/src/app/profile/[slug]/page.tsx +++ b/src/app/profile/[slug]/page.tsx @@ -24,10 +24,10 @@ export default async function ProfilePage({ params, searchParams }: Props) { }, }); - const likedMiis = await prisma.like.count({ where: { userId: Number(slug) } }); - if (!user) redirect("/404"); + const likedMiis = await prisma.like.count({ where: { userId: Number(slug) } }); + return (