Skip to content

Commit

Permalink
refactor: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-uhryn-absa committed Dec 8, 2023
1 parent 74d0094 commit 0ebf2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/common/components/navigation/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface User {
id?: string
}

const protectedPages = ['/submissions', '/invitations']
const protectedPathes = ['/submissions', '/invitations']

export function Header() {
const currentPathname = usePathname()
Expand Down Expand Up @@ -114,5 +114,5 @@ async function getPendingSubmissionsCount(): Promise<number> {
}

function isPageProtected(pathname: string) {
return !!protectedPages.find((page) => pathname.includes(page))
return !!protectedPathes.find((path) => pathname.includes(path))
}

0 comments on commit 0ebf2a1

Please sign in to comment.