Skip to content

Commit

Permalink
update useForm unused vars error
Browse files Browse the repository at this point in the history
  • Loading branch information
nachat-ayoub committed Jun 20, 2024
1 parent b26c376 commit 471972c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/useForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ function useForm() {
function sendEmail(e: any, cb: (error: string | null) => void) {
try {
emailjs.sendForm(SERVICE_ID, TEMPLATE_ID, e.target, PUBLIC_KEY).then(
function (response) {
function () {
// console.log('SUCCESS!', response.status, response.text);
cb(null);
},
function (err) {
function () {
// console.log('FAILED...', err);
cb('FAILED...');
}
Expand Down

0 comments on commit 471972c

Please sign in to comment.