Skip to content

Commit

Permalink
fix: only redirect on contributor profile if login is defined (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Apr 20, 2023
1 parent a8ba65f commit 483f38c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 483f38c

Please sign in to comment.