fix: only run when we have both the email and token

This commit is contained in:
Derrick Hammer 2024-03-26 23:52:01 -04:00
parent 41bff5acdd
commit c699672737
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ function VerifyAuthenticated() {
const exchangeToken = useQuery({
queryKey: ["exchange-token", token],
retry: false,
enabled: !!user.data?.email && !!token,
queryFn: async () => {
const ret= await sdk.account!().verifyEmail({
email: user.data?.email as string,