Remove Birthdate from GettingStartForm.tsx

Took 5 minutes
This commit is contained in:
Lucàs
2023-05-20 15:00:37 +02:00
parent 95059f21ac
commit afe3899457
4 changed files with 6 additions and 50 deletions
@@ -10,13 +10,7 @@ export default function SubmitGettingStartForm({user}: { user: User }) {
(state: RootState) => state.gettingStartForm);
const handleSubmit = () => {
const {
ownGender,
researchGender,
ages,
birth,
passions,
} = gettingStartForm.inputs;
const {ownGender, researchGender, ages, passions} = gettingStartForm.inputs;
const options = {
method: 'PUT',
@@ -26,11 +20,8 @@ export default function SubmitGettingStartForm({user}: { user: User }) {
prefGender: researchGender,
ageMin: ages[0],
ageMax: ages[1],
birthdate: new Date(birth),
Passion: {
connect: passions.map((p: Passion) => {
return {id: p.id};
}),
connect: passions.map((p: Passion) => ({id: p.id})),
},
}),
};