diff --git a/index.html b/index.html index 01b8042..e226d67 100644 --- a/index.html +++ b/index.html @@ -767,7 +767,17 @@ const TRANSACTIONS_PER_PAGE = 10; function checkBalance(ethAddress, floAddress) { - if (!ethAddress) { + if (ethAddress) { + // If address is provided sync the input box + const searchInput = document.querySelector('#check_balance_input'); + if (searchInput) { + searchInput.value = ethAddress; + const nativeInput = searchInput.querySelector('input'); + if (nativeInput) { + nativeInput.value = ethAddress; + } + } + } else { let keyToConvert = document.querySelector('#check_balance_input').value.trim() // Check if input is empty @@ -1031,7 +1041,7 @@