diff --git a/apps/web/pages/auth/verify-email.tsx b/apps/web/pages/auth/verify-email.tsx index 8c66de182fb261..d0a048ca4b5d1a 100644 --- a/apps/web/pages/auth/verify-email.tsx +++ b/apps/web/pages/auth/verify-email.tsx @@ -15,7 +15,7 @@ function VerifyEmailPage() { const { data } = useEmailVerifyCheck(); const { data: session } = useSession(); const router = useRouter(); - const { t } = useLocale(); + const { t, isLocaleReady } = useLocale(); const mutation = trpc.viewer.auth.resendVerifyEmail.useMutation(); useEffect(() => { @@ -24,7 +24,9 @@ function VerifyEmailPage() { } // eslint-disable-next-line react-hooks/exhaustive-deps }, [data?.isVerified]); - + if (!isLocaleReady) { + return null; + } return (