Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: only be able to view profiles of active users

bautistaaabea47b612be9
diff --git a/apps/web/src/app/(profile)/[username]/page.tsx b/apps/web/src/app/(profile)/[username]/page.tsx
index 1edb8b8c..dc62b027 100644
--- a/apps/web/src/app/(profile)/[username]/page.tsx
+++ b/apps/web/src/app/(profile)/[username]/page.tsx
@@ -36,6 +36,7 @@ export default async function ProfilePage(props: { params: { username: string }
const user = await prisma.user.findFirst({
where: {
name: username,
+ status: 'ACTIVE',
},
select: {
id: true,