fix: check your email page flickers (#12969)
* fixes#12966 * fixes#12966 * "fix-modification * fix-mis-paste * checks-fixes * civilized-code-of-same-previous-approach * civilized-changes-of-same-approach * fix * checks-fix * fix * fix * checks-fix * checksfix * check fix * undochanges-_- --------- Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
1c2fff5447
commit
ffefb3461e
1 file changed
+4
-2
@@ -15,7 +15,7 @@ function VerifyEmailPage() {
|
|||||||
const { data } = useEmailVerifyCheck();
|
const { data } = useEmailVerifyCheck();
|
||||||
const { data: session } = useSession();
|
const { data: session } = useSession();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useLocale();
|
const { t, isLocaleReady } = useLocale();
|
||||||
const mutation = trpc.viewer.auth.resendVerifyEmail.useMutation();
|
const mutation = trpc.viewer.auth.resendVerifyEmail.useMutation();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -24,7 +24,9 @@ function VerifyEmailPage() {
|
|||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [data?.isVerified]);
|
}, [data?.isVerified]);
|
||||||
|
if (!isLocaleReady) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div className="h-[100vh] w-full ">
|
<div className="h-[100vh] w-full ">
|
||||||
<div className="flex h-full w-full flex-col items-center justify-center">
|
<div className="flex h-full w-full flex-col items-center justify-center">
|
||||||
|
|||||||
Reference in new issue
Block a user