From f72690988ebefecec1e1ee8f7c11257a6347dc3b Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 4 Oct 2025 06:34:45 -0300 Subject: [PATCH] close --- public/buyModal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/buyModal.js b/public/buyModal.js index beb1d05..0e05a1f 100644 --- a/public/buyModal.js +++ b/public/buyModal.js @@ -111,7 +111,10 @@ function createModal() { // Close modal document.getElementById("closeModal").onclick = () => { document.getElementById("buyNowModal").style.display = "none"; }; - document.getElementById("closeConfirmation").onclick = () => { document.getElementById("confirmation").style.display = "none"; }; + document.getElementById("closeConfirmation").onclick = () => { + document.getElementById("confirmation").style.display = "none"; + document.getElementById("buyNowModal").style.display = "none"; + }; modal.onclick = (e) => { if (e.target === modal) modal.style.display = "none"; }; return modal;