From 6263b67c7b0d1ddce4a410e11dc68696ed5ec793 Mon Sep 17 00:00:00 2001 From: Kawtar Choubari Date: Thu, 7 Sep 2023 20:49:02 +0200 Subject: [PATCH] Remove console.log --- app/api/contact/route.ts | 2 -- app/contact/page.tsx | 2 -- components/repo-card.tsx | 1 - 3 files changed, 5 deletions(-) diff --git a/app/api/contact/route.ts b/app/api/contact/route.ts index fd3fc8e..317f68a 100644 --- a/app/api/contact/route.ts +++ b/app/api/contact/route.ts @@ -24,10 +24,8 @@ export async function POST(request: Request) { message: contactEntry.message, }), }); - console.log("route ", { status: "sent", ...data }); return NextResponse.json(data); } catch (error) { - console.log("err ", error); return NextResponse.json({ error }); } } diff --git a/app/contact/page.tsx b/app/contact/page.tsx index 6a6b7cd..424602c 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -28,9 +28,7 @@ export default function Contact() { method: "POST", body: formData, }); - console.log("res ", res); const resBody = await res.json(); - console.log("resBody ", resBody); if (resBody.id) { alert("Your message has been sent successfully"); } else { diff --git a/components/repo-card.tsx b/components/repo-card.tsx index 200a6ef..22acf44 100644 --- a/components/repo-card.tsx +++ b/components/repo-card.tsx @@ -7,7 +7,6 @@ type RepoCardProps = { repo: Repo; }; const RepoCard: React.FC = ({ repo }) => { - // console.log(repo.language); const TechIcon = techIconMap[repo.language?.toLowerCase() ?? "undefined"] || techIconMap["none"];