diff --git a/btcwallet/index.html b/btcwallet/index.html index bbd56ce..27b2da1 100644 --- a/btcwallet/index.html +++ b/btcwallet/index.html @@ -1265,18 +1265,19 @@ } txDetailsAbortController = new AbortController(); btcOperator.getTx(txid).then(result => { - const { block, time, size, fee, inputs, outputs, confirmations, total_input_value, total_output_value } = result; - console.debug('tx', result); + console.log(result) + const { block, time, size, fee, inputs, outputs, confirmations = 0, total_input_value, total_output_value } = result; + const isUnconfirmed = block === null || confirmations === 0 || confirmations === null || block <= 0; renderElem(getRef('tx_details'), html`

Transaction Details

- ${!block ? html`

+ ${isUnconfirmed ? html`

Unconfirmed

` : ''}
- ${!block ? html` + ${isUnconfirmed ? html`

Taking too long to confirm? @@ -1300,7 +1301,7 @@

${confirmations}
- ${block ? html` + ${!isUnconfirmed ? html`