Skip to content

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kawtar Choubari committed Sep 7, 2023
1 parent df91477 commit 6263b67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app/api/contact/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
2 changes: 0 additions & 2 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion components/repo-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type RepoCardProps = {
repo: Repo;
};
const RepoCard: React.FC<RepoCardProps> = ({ repo }) => {
// console.log(repo.language);
const TechIcon =
techIconMap[repo.language?.toLowerCase() ?? "undefined"] ||
techIconMap["none"];
Expand Down

0 comments on commit 6263b67

Please sign in to comment.