Skip to content

Commit

Permalink
Merge pull request #47 from MeetYourAI/yosh
Browse files Browse the repository at this point in the history
revert to form before
  • Loading branch information
yoshinodev authored Sep 16, 2023
2 parents 524cc21 + b8e4d64 commit e5ce8a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ <h2 class=" footer-col-title">contact information</h2>
if (response.ok) {
document.getElementById("successMessage").style.display = "block";
document.getElementById("errorMessage").style.display = "none";

document.getElementById("contact-us-form").reset();
} else {
response.json().then(data => {
if (Object.hasOwn(data, 'errors')) {
Expand All @@ -1190,7 +1190,6 @@ <h2 class=" footer-col-title">contact information</h2>
document.getElementById("successMessage").style.display = "none";
document.getElementById("errorMessage").style.display = "block";
});
document.getElementById("contact-us-form").reset();
}

form.addEventListener(submitButton, handleSubmit)
Expand Down

0 comments on commit e5ce8a9

Please sign in to comment.