From 0b02732f48bf2e4a31a00aa715635ff0b5751ab7 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 26 Dec 2023 23:31:10 +0530 Subject: [PATCH] UI bug fix --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index bbd56ce..27b2da1 100644 --- a/index.html +++ b/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`