From e8fa02b6b650604e8cf3aa528e1c9ad9ad075716 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 4 Oct 2025 06:49:26 -0300 Subject: [PATCH] remove _ --- public/buyModal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/buyModal.js b/public/buyModal.js index 0e05a1f..30db84c 100644 --- a/public/buyModal.js +++ b/public/buyModal.js @@ -132,6 +132,8 @@ function openModal(productHref) { price = parts[parts.length - 1] || "0"; } + product = product.replace(/_/g, ""); + modal.querySelector('input[name="product"]').value = product; modal.querySelector('input[name="price"]').value = price; modal.querySelector("#productText").textContent = `You will buy ${product} for $${price}.`;