Skip to content

Commit

Permalink
[C] remove additional contact error check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Mar 16, 2023
1 parent 935e4ca commit 71fd25b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/global/Footer/ContactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ function ContactForm({ topics = [], className }) {
const formData = new FormData(event.target);

await postFormData(formData)
.then((data) => {
if (data.success) {
setStatus("success");
} else {
setStatus("error");
}
.then(() => {
setStatus("success");
})
.catch((error) => {
setStatus("error");
Expand Down

0 comments on commit 71fd25b

Please sign in to comment.