Skip to content

Commit

Permalink
fix: query function without return (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
juniorboos authored May 3, 2023
1 parent 1db051f commit 2d218a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/hooks/auth/useSignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ const useSignUp = (emailName: EmailNameType, { onSuccess, onError }: UseSignUpCa

return useQuery(
['checkUserExists', emailName.email],
() => {
() =>
NEXT_PUBLIC_ENABLE_AZURE
? checkUserExistsAD(emailName.email)
: checkUserExists(emailName.email);
},
: checkUserExists(emailName.email),
{
enabled: !!emailName.email && !emailName.goback,
refetchOnMount: false,
Expand Down

0 comments on commit 2d218a1

Please sign in to comment.