Skip to content

Commit

Permalink
fix: fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Skolaczk committed Sep 8, 2024
1 parent 709f1cc commit bd1e352
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actions/send-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ export const sendEmail = async ({ email, message }: TFormSchema) => {
from: 'Contact Form <[email protected]>',
to: '[email protected]',
subject: 'Message from contact form',
reply_to: email,
replyTo: email,
text: `email: ${email} \nmessage: ${message}`,
});

return {
data: 'Email sent successfully!',
};
} catch (error) {
} catch {
return {
error: 'Something went wrong!',
error: `Something went wrong!`,
};
}
};

0 comments on commit bd1e352

Please sign in to comment.