From 763480f03b23c3877d6f5cddee4d64d14c247e51 Mon Sep 17 00:00:00 2001 From: kkatusic Date: Thu, 10 Oct 2024 15:55:07 +0200 Subject: [PATCH] Fix/slug of the project on email verification page --- .../views/verification/EmailVerificationIndex.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/views/verification/EmailVerificationIndex.tsx b/src/components/views/verification/EmailVerificationIndex.tsx index 3df9a7a3d..d33d41e7f 100644 --- a/src/components/views/verification/EmailVerificationIndex.tsx +++ b/src/components/views/verification/EmailVerificationIndex.tsx @@ -78,10 +78,17 @@ export default function EmailVerificationIndex() { } function Verified() { + const [querySlug, setQuerySlug] = useState(undefined); const router = useRouter(); const { slug } = router.query; const { formatMessage } = useIntl(); + useEffect(() => { + if (slug) { + setQuerySlug(slug as string); + } + }, [slug]); + return ( <> - +