diff --git a/index.html b/index.html index dde2f8c..f0ca16d 100644 --- a/index.html +++ b/index.html @@ -1164,6 +1164,7 @@ const transactingAddressesLinks = transactingAddresses .slice(0, 2).map(address => html`${address}`) // block = null + const isUnconfirmed = block < 0 || block === null || block === undefined if (type === 'out') { transactionReceiver = html`Sent to ${transactingAddressesLinks}`; icon = svg``; @@ -1174,12 +1175,12 @@ transactionReceiver = `Sent to self`; icon = svg``; } - if (!block) { + if (isUnconfirmed) { icon = svg``; } const queriedAddress = pagesData.params?.query || getRef('search_query_input').value.trim() const isSender = type === 'out' || type === 'self' - const className = `transaction grid ${type} ${block === null ? 'unconfirmed-tx' : ''}` + const className = `transaction grid ${type} ${isUnconfirmed ? 'unconfirmed-tx' : ''}` return html.node/*html*/`
Confirmation pending: amount will be deducted after transaction is confirmed. ${isSender && !block ? ' Try increasing fee to speed up confirmation' : ''} @@ -1854,6 +1855,7 @@ getRef('send_transaction').disabled = true; getRef('fees_section').classList.add('hidden') getRef('error_section').classList.remove('hidden') + console.error(e) if (e.includes('Invalid private key')) { const invalidKeys = e.split(':')[1].split(',').map(key => key.trim()); invalidKeys.forEach(key => {