diff --git a/cronoswallet/index.html b/cronoswallet/index.html index 01b8042..e226d67 100644 --- a/cronoswallet/index.html +++ b/cronoswallet/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 @@
${amountPrefix}${tx.value.toFixed(8)} ${tx.symbol}
- ${directionText} ${displayAddress} + ${directionText} { e.preventDefault(); checkBalance(displayAddress); }}>${displayAddress}