From ff0b3cf588e08ec8ec49eeeb242d8f1e97ee8641 Mon Sep 17 00:00:00 2001 From: void-57 Date: Wed, 10 Dec 2025 15:55:30 +0530 Subject: [PATCH] feat: display searched address and differentiate inactive account errors when loading balance --- index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 58c6372..5307754 100644 --- a/index.html +++ b/index.html @@ -1183,7 +1183,17 @@ } catch (error) { console.error('Error:', error); showNotification('❌ Error: ' + error.message, 'error'); - document.getElementById('display-balance').textContent = 'Error loading balance'; + + // Display the searched address + document.getElementById('display-address').textContent = address; + + // Check if it's an inactive account error + if (error.message.includes('not found') || error.message.includes('invalid')) { + document.getElementById('display-balance').textContent = 'Address is inactive'; + } else { + document.getElementById('display-balance').textContent = 'Error loading balance'; + } + document.getElementById('transaction-list').innerHTML = `