diff --git a/web/src/screens/SignUpInformationScreen.tsx b/web/src/screens/SignUpInformationScreen.tsx index 90e75f5..96f3584 100644 --- a/web/src/screens/SignUpInformationScreen.tsx +++ b/web/src/screens/SignUpInformationScreen.tsx @@ -4,7 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod"; import TextQuestion from "@components/forms/TextQuestion"; import DropdownQuestion from "@components/forms/DropdownQuestion"; import { useState } from "react"; -import { updateUserInfo } from "../api/apiRequests"; +// import { updateUserInfo } from "../api/apiRequests"; import { useUpdateUserInfo } from "../hooks/api/useUpdateUserInfo"; import LoadingSpinner from "@components/navigation/LoadingSpinner"; @@ -49,10 +49,11 @@ export default function SignUpInformationScreen({ const [formError, setFormError] = useState(false); - const { status, mutateAsync } = useUpdateUserInfo(); + const {status, mutateAsync} = useUpdateUserInfo() const sendSignUpData = async (data: SignUpSchemaType) => { - mutateAsync(data); + + mutateAsync(data) }; const onSubmit: SubmitHandler = (data) => { @@ -85,16 +86,16 @@ export default function SignUpInformationScreen({ { id: 3, text: "None" }, ]; - if (status === "success") { + if (status === "success"){ window.location.href = "/membership"; } - if (status === "error") { + if (status === "error"){ setFormError(true); } - if (status === "pending") { - return ; + if (status === "pending"){ + return } return (