Skip to content

Commit

Permalink
commented out tabQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongnmdevblock committed Sep 4, 2024
1 parent 38704ee commit 1425ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/shouldRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const shouldRedirect = (
}

const hasValidTab = visibileTabs.includes(tab)
const tabQuery = tab !== 'profile' && hasValidTab ? `?tab=${tab}` : ''
// const tabQuery = tab !== 'profile' && hasValidTab ? `?tab=${tab}` : ''

if (!hasValidTab) {
return router.replace(`${destination}/${name}`)
Expand Down

0 comments on commit 1425ac1

Please sign in to comment.