Skip to content

Commit

Permalink
feat: adjust logic title formatted url
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielduete committed Jun 19, 2024
1 parent 835a869 commit 8010816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/components/NavBar/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const DesktopNavBar = () => {
}

const goToContent = (id: string, title: string) => {
const titleWithHyphens = title.replace(/\s/g, '-')
const titleWithHyphens = title.replaceAll(' ', '-')

setIdPage(id)

Expand Down

0 comments on commit 8010816

Please sign in to comment.