Connect, collaborate, and grow with a community of TypeScript developers
Prevented unnecessary query (#390)
typesafegh5d321a457a2e
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 09994ba3..45acbdd7 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -6,7 +6,7 @@ machine. Below are the steps to follow in order for you to get dotfyle to run on### 1. Create a `.env` file```-cp apps/web/.env.example apps/web/.env+cp .env.example .env```Provide your own values as needed.diff --git a/apps/web/src/components/user/profile.tsx b/apps/web/src/components/user/profile.tsxindex b727d898..2fbc5288 100644--- a/apps/web/src/components/user/profile.tsx+++ b/apps/web/src/components/user/profile.tsx@@ -14,7 +14,7 @@ export const metadata: Metadata = {export async function Profile({ username: usernameFromQuery }: Props) {const [, username] = decodeURIComponent(usernameFromQuery).split('@');-+if (!username) return notFound();const user = await prisma.user.findFirst({