Skip to content

Commit

Permalink
🐛 Applied withPrefix at wrong step
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Nov 9, 2020
1 parent ae902e8 commit 66ae88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ const Header = ({
const [tabRefs] = useState([])

const positionSelectedTabIndicator = () => {
const currentPath = withPrefix(location.pathname)
const currentPath = location.pathname
const localTabs = tabRefs.filter(
(tab) => tab.current?.hostname === location.hostname
)
const selectedTab =
localTabs.find((tab) => {
return (
tab.current?.pathname !== '/' &&
tab.current?.pathname !== withPrefix('/') &&
currentPath &&
currentPath.startsWith(tab.current?.pathname)
)
Expand Down

0 comments on commit 66ae88d

Please sign in to comment.