Skip to content

Commit

Permalink
erased res status condition
Browse files Browse the repository at this point in the history
  • Loading branch information
carvalholuigi25 committed Oct 31, 2023
1 parent b387cc0 commit 906d0e7
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/app/[locale]/components/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,12 @@ export default function ContactComponent() {
.then((res) => {
console.log(res);
console.log('Response received');

if (res.status === 200) {
console.log('Response succeeded!');
setSubmitted(true);
setName('');
setEmail('');
setSubject('');
setMessage('');
}
console.log('Response succeeded!');
setSubmitted(true);
setName('');
setEmail('');
setSubject('');
setMessage('');
});
}

Expand Down

0 comments on commit 906d0e7

Please sign in to comment.