From 1bd74aba4d7be758ea1c04989c9effd668195cbd Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 26 Jul 2022 14:29:00 +0300 Subject: [PATCH] chore: code clean-up --- .../static/components/fee-rate/fee-rate.html | 2 +- .../watchonly/static/components/fee-rate/fee-rate.js | 11 ++--------- .../watchonly/static/components/payment/payment.html | 2 +- .../watchonly/static/components/payment/payment.js | 1 - .../static/components/utxo-list/utxo-list.js | 1 - lnbits/extensions/watchonly/static/js/index.js | 1 - 6 files changed, 4 insertions(+), 14 deletions(-) diff --git a/lnbits/extensions/watchonly/static/components/fee-rate/fee-rate.html b/lnbits/extensions/watchonly/static/components/fee-rate/fee-rate.html index 1e803e0d..c65ad1c4 100644 --- a/lnbits/extensions/watchonly/static/components/fee-rate/fee-rate.html +++ b/lnbits/extensions/watchonly/static/components/fee-rate/fee-rate.html @@ -44,7 +44,7 @@
Fee:
-
{{totalfee}} sats
+
{{feeValue}} sats
- +
diff --git a/lnbits/extensions/watchonly/static/components/payment/payment.js b/lnbits/extensions/watchonly/static/components/payment/payment.js index 41bb044f..6d6428a2 100644 --- a/lnbits/extensions/watchonly/static/components/payment/payment.js +++ b/lnbits/extensions/watchonly/static/components/payment/payment.js @@ -133,7 +133,6 @@ async function payment(path) { } }, selectChangeAddress: function (account) { - console.log('### selectChangeAddress', account) if (!account) this.changeAddress = '' this.changeAddress = this.addresses.find( diff --git a/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.js b/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.js index 88836fec..9e71f3a1 100644 --- a/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.js +++ b/lnbits/extensions/watchonly/static/components/utxo-list/utxo-list.js @@ -108,7 +108,6 @@ async function utxoList(path) { this.utxos.forEach(u => (u.selected = true)) return } - console.log('### applyUtxoSelectionMode') this.utxos.forEach(u => (u.selected = false)) const isManual = mode === 'Manual' diff --git a/lnbits/extensions/watchonly/static/js/index.js b/lnbits/extensions/watchonly/static/js/index.js index 2a768166..437a9489 100644 --- a/lnbits/extensions/watchonly/static/js/index.js +++ b/lnbits/extensions/watchonly/static/js/index.js @@ -685,7 +685,6 @@ const watchOnly = async () => { this.utxos.total = 0 this.history = [] const addresses = this.addresses.filter(a => a.hasActivity) - console.log('### scanAddressWithAmount', this.addresses, addresses) await this.updateUtxosForAddresses(addresses) }, scanAddress: async function (addressData) {