Skip to content

Commit

Permalink
auto redirect if there is an id in the url
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcn04 committed Apr 17, 2024
1 parent db9ff56 commit 84da2ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paramount/client/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default function HomePage() {
const identifierQuery = searchParams.get('identifier')
if (identifierQuery) {
setIdentifier(identifierQuery)
navigator('/evaluate')
return
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [config])
Expand Down

0 comments on commit 84da2ea

Please sign in to comment.