diff --git a/src/features/auth/ui/Login.tsx b/src/features/auth/ui/Login.tsx index bac4be7..5190de7 100644 --- a/src/features/auth/ui/Login.tsx +++ b/src/features/auth/ui/Login.tsx @@ -25,6 +25,7 @@ import { authForm } from '../lib/form'; const Login = () => { const router = useRouter(); const t = useTranslations(); + const queryClient = useQueryClient(); const form = useForm>({ resolver: zodResolver(authForm), defaultValues: { @@ -32,7 +33,6 @@ const Login = () => { username: '', }, }); - const queryClient = useQueryClient(); const { mutate, isPending } = useMutation({ mutationFn: (body: {