fix: Email verification banner (#9519)

pull/9530/head
Udit Takkar 2023-06-15 11:41:32 +05:30 committed by GitHub
parent 4284a4d16d
commit 3116d6df1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,10 +9,10 @@ import { useFlagMap } from "../../flags/context/provider";
function VerifyEmailBanner() {
const flags = useFlagMap();
const { t } = useLocale();
const { data } = useEmailVerifyCheck();
const { data, isLoading } = useEmailVerifyCheck();
const mutation = trpc.viewer.auth.resendVerifyEmail.useMutation();
if (data?.isVerified || !flags["email-verification"]) return null;
if (isLoading || data?.isVerified || !flags["email-verification"]) return null;
return (
<>