From 483f38c54c6c707873b9e63c78b751bc5a994494 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Thu, 20 Apr 2023 15:03:27 -0500 Subject: [PATCH] fix: only redirect on contributor profile if login is defined (#1114) --- .../organisms/ContributorProfileTab/contributor-profile-tab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx b/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx index f861332a18..8ad2620954 100644 --- a/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx +++ b/components/organisms/ContributorProfileTab/contributor-profile-tab.tsx @@ -69,7 +69,7 @@ const ContributorProfileTab = ({ useEffect(() => { setInputVisible(highlights && highlights.length !== 0 ? true : false); - if (currentPathname) { + if (login && currentPathname) { router.push(`/user/${login}/${currentPathname}`); } }, [highlights]);