Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check your email page flickers #12969

Merged
merged 17 commits into from
Jan 2, 2024
6 changes: 4 additions & 2 deletions apps/web/pages/auth/verify-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -24,7 +24,9 @@ function VerifyEmailPage() {
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data?.isVerified]);

if (!isLocaleReady) {
return null;
}
return (
<div className="h-[100vh] w-full ">
<div className="flex h-full w-full flex-col items-center justify-center">
Expand Down
Loading