diff --git a/src/js/main.js b/src/js/main.js index a8eaf5a..63c5ab5 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -64,16 +64,9 @@ document.addEventListener('DOMContentLoaded', function () { } }); - // Add event listeners for the conversion buttons - convertXMRToFiatBtn.addEventListener('click', (e) => { - e.preventDefault(); - xmrConvert(); - }); - - convertFiatToXMRBtn.addEventListener('click', (e) => { - e.preventDefault(); - fiatConvert(); - }); + // Hide the conversion buttons if JavaScript is enabled + convertXMRToFiatBtn.style.display = 'none'; + convertFiatToXMRBtn.style.display = 'none'; // Fetch updated exchange rates immediately, then every 5 seconds fetchUpdatedExchangeRates();