diff --git a/scripts/wallet.js b/scripts/wallet.js index 987679a..6cc967b 100644 --- a/scripts/wallet.js +++ b/scripts/wallet.js @@ -1545,6 +1545,19 @@ async function checkBalanceAndTransactions() { if (allTransactions.length === 0) { document.getElementById("txList").innerHTML = '

No transactions found for this address.

'; + + // Hide transaction controls and reset pagination + document.getElementById("transactionControls").style.display = "none"; + + // Reset pagination info + document.getElementById("paginationInfo").textContent = "Showing 0 - 0 of 0 transactions"; + + // Clear page numbers + document.getElementById("pageNumbers").innerHTML = ""; + + // Disable pagination buttons + document.getElementById("prevBtn").disabled = true; + document.getElementById("nextBtn").disabled = true; } else { // Show controls and display transactions document.getElementById("transactionControls").style.display = @@ -2134,4 +2147,4 @@ window.copyCurrentAddress = copyCurrentAddress; document.addEventListener("DOMContentLoaded", () => { initializeInputControls(); -}); +}); \ No newline at end of file