Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix route parse for profile tabs (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Apr 10, 2021
1 parent 2fdc6f6 commit f3704dc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/audius-web-client/src/utils/route/userRouteParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ export const parseUserRoute = (route: string): UserRouteParams => {
)
if (profilePageTabMatch) {
const { handle, tab } = profilePageTabMatch.params
return { handle, userId: null, tab }
if (
tab === 'tracks' ||
tab === 'albums' ||
tab === 'playlists' ||
tab === 'reposts' ||
tab === 'collectibles'
) {
return { handle, userId: null, tab }
}
}

return null
Expand Down

0 comments on commit f3704dc

Please sign in to comment.