diff --git a/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx b/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx index 19fb24da4a..40176734b7 100644 --- a/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx +++ b/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx @@ -83,14 +83,14 @@ const ContributorProfileTab = ({ useEffect(() => { setInputVisible(highlights && highlights.length !== 0 ? true : false); if (login && currentPathname) { - router.push(`/user/${login}/${currentPathname}`); setCurrentPathname(getCurrentPathName); + router.push(`/user/${login}/${currentPathname}`); } - if (login && !hasHighlights) { - router.push(`/user/${login}/contributions`); - setCurrentPathname("contributions"); + if (login && !hasHighlights && currentPathname) { + setCurrentPathname(currentPathname); + router.push(`/user/${login}/${currentPathname}`); } - }, [currentPathname, hasHighlights, highlights, login]); + }, [login, hasHighlights]); useEffect(() => { // sets the highlights state to true if the user has highlights on profile route change @@ -100,7 +100,7 @@ const ContributorProfileTab = ({ }, [highlights]); return ( - + {tabLinks.map((tab) => ( -
- +
+
diff --git a/lib/hooks/useContributorPullRequestsChart.ts b/lib/hooks/useContributorPullRequestsChart.ts index 9430a41e0e..347306e195 100644 --- a/lib/hooks/useContributorPullRequestsChart.ts +++ b/lib/hooks/useContributorPullRequestsChart.ts @@ -23,7 +23,7 @@ const useContributorPullRequestsChart = (contributor: string, topic: string, rep }, }, grid: { - height: 100, + height: 130, top: 0, bottom: 0, right: 0, @@ -41,6 +41,7 @@ const useContributorPullRequestsChart = (contributor: string, topic: string, rep color: "#FFB74D", opacity: 0.6, }, + clip: false, }, ], tooltip: { diff --git a/pages/_app.tsx b/pages/_app.tsx index bf423f9304..cd174f52c8 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -58,8 +58,6 @@ function MyApp({ Component, pageProps }: ComponentWithPageLayout) { if (typeof window !== "undefined") hostname = window.location.hostname; - console.log(router.asPath); - useEffect(() => { let chatButton = document.getElementById("sitegpt-chat-icon");