Skip to content

Commit

Permalink
Merge pull request #4839 from Giveth/fix/success_link_loading
Browse files Browse the repository at this point in the history
Fix/slug of the project on email verification page
  • Loading branch information
kkatusic authored Oct 16, 2024
2 parents 66e0051 + 763480f commit de88812
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 de88812

Please sign in to comment.