Skip to content

Commit

Permalink
Fix/slug of the project on email verification page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Oct 10, 2024
1 parent 95abb06 commit 763480f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/views/verification/EmailVerificationIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,17 @@ export default function EmailVerificationIndex() {
}

function Verified() {
const [querySlug, setQuerySlug] = useState<string | undefined>(undefined);
const router = useRouter();
const { slug } = router.query;
const { formatMessage } = useIntl();

useEffect(() => {
if (slug) {
setQuerySlug(slug as string);
}
}, [slug]);

return (
<>
<Image
Expand All @@ -99,7 +106,7 @@ function Verified() {
})}
</Lead>
<LinkHolder>
<Link href={slugToVerification(slug as string)}>
<Link href={slugToVerification(querySlug as string)}>
<ButtonLink
size='small'
label={
Expand Down

0 comments on commit 763480f

Please sign in to comment.