diff --git a/public/buyModal.js b/public/buyModal.js index f3be0ab..2f12bd3 100644 --- a/public/buyModal.js +++ b/public/buyModal.js @@ -45,7 +45,7 @@ function createModal() {
- +
@@ -145,9 +145,9 @@ function handleFormSubmit() { }); if (res.ok) { + form.style.display = "none"; confirmation.style.display = "block"; form.reset(); - document.getElementById("buyNowModal").style.display = "none"; } else { alert("Failed to submit form."); }