From ede0554122e06c7c470d2e0c76b5e85d5d58fd56 Mon Sep 17 00:00:00 2001 From: katexpl <81971860+katexpl@users.noreply.github.com> Date: Thu, 23 Nov 2023 20:02:14 +0100 Subject: [PATCH] Update githubSearch.tsx --- src/pages/githubSearch.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pages/githubSearch.tsx b/src/pages/githubSearch.tsx index 6817cb8..99bb4bf 100644 --- a/src/pages/githubSearch.tsx +++ b/src/pages/githubSearch.tsx @@ -11,7 +11,6 @@ const GithubSearch: React.FC = () => { const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); try { - // Get user email const response: AxiosResponse = await axios.get( `https://api.github.com/users/${userLogin}` ); @@ -21,14 +20,12 @@ const GithubSearch: React.FC = () => { console.error("Failed to retrieve login."); } - // Get user's last 5 updated projects const projects: AxiosResponse = await axios.get( `https://api.github.com/users/${userLogin}/repos?sort=updated&direction=desc&per_page=5` ); setUserProjects(projects.data); if (projects.data) { - // Get the last 5 commits for each project const commits = await Promise.all( projects.data.map(async (project: IProject) => { if (project.size === 0) {