Skip to content

Commit

Permalink
pre-commit error fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
ddenizdemirtas committed Nov 14, 2023
1 parent 9ee33de commit d6a2a1d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ export const CreateSectionModal = ({ courseId, closeModal, reloadSections }: Cre
return spacetimes.some(spacetime => !spacetime.location?.trim());
};


const handleSubmit = (event: React.MouseEvent<HTMLButtonElement>): void => {



event.preventDefault();
const data = {
mentorEmail,
Expand All @@ -105,7 +101,6 @@ export const CreateSectionModal = ({ courseId, closeModal, reloadSections }: Cre
courseId
};


createSectionMutation.mutate(data, {
onSuccess: () => {
closeModal();
Expand Down Expand Up @@ -231,4 +226,4 @@ export const CreateSectionModal = ({ courseId, closeModal, reloadSections }: Cre
</div>
</Modal>
);
};
};

0 comments on commit d6a2a1d

Please sign in to comment.