Skip to content

Commit

Permalink
remove try and catch (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanals authored Jun 12, 2024
1 parent d9eb107 commit 1544021
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions swe/components/registration-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export default function RegistrationForm({ courses }: Props) {
const { register, handleSubmit } = useForm();

const onFormSubmission = async (data: any, event: any) => {
try {
await saveRegistrationForm(data);
} catch (err) {
console.log(err);
}
await saveRegistrationForm(data);
};

return (
Expand Down

0 comments on commit 1544021

Please sign in to comment.