diff --git a/rootfs/standard/var/www/mynode/templates/main.html b/rootfs/standard/var/www/mynode/templates/main.html index df1af23c..bf66bb46 100644 --- a/rootfs/standard/var/www/mynode/templates/main.html +++ b/rootfs/standard/var/www/mynode/templates/main.html @@ -109,8 +109,18 @@ function need_to_update_tx_table(transactions, last_displayed_tx) { if (transactions.length > 0) { tx = transactions[0]; - if (tx["id"] != last_displayed_tx) { + if (tx["id"] != last_displayed_tx["id"]) { return true; + } else { + fields_to_compare = ["num_confirmations"]; + for (i=0; i"; row += ""+tx['amount_str']+""; @@ -283,7 +293,7 @@ for (i=0; i < payments_and_invoices.length && i < {{lnd_tx_display_limit}}; i++) { tx = payments_and_invoices[i]; //console.log(JSON.stringify(tx)) - if (i==0) {lnd_last_ln_tx = tx['id'];} + if (i==0) {lnd_last_ln_tx = tx;} row = ""; row += ""+tx['date_str']+""; row += ""+tx['value_str']+"";